Jump to content
php.lv forumi

File uploads


xfr33

Recommended Posts

Labdien!

 

Situācija tāda: ir forma, kurā ir divi input file lauki. Apstrādājot un palaižot formu uploadojas tikai viens. Otram var noņemt visus ierobežojumus un izmēru, paplašinājumiem u.t.t., bet nekas nemainās?

        		<form action="./<?php
if(isset($_GET['lang']) && !isset($_GET['pageID'])) echo "?lang=".$_GET['lang'];
elseif(isset($_GET['pageID']) && isset($_GET['lang'])) echo "?pageID=".$_GET['pageID']."〈=".$_GET['lang']; ?>" method="post" name="reg2" enctype="multipart/form-data">
        		<table>
        		<tr><td class="td_left">Valodas, kurās runāju:</td><td class="margin"><select name="lang1"><?php include("functions/langList.php"); ?></select><select name="lang2"><?php include("functions/langList.php"); ?></select><select name="lang3"><?php include("functions/langList.php"); ?></select><select name="lang4"><?php include("functions/langList.php"); ?></select></td></tr>
               	<tr><td class="td_left">Mīļākais sporta veids:</td><td><select name="sportType" style="width: 100%;"><?php include("functions/sportList.php"); ?></select></td></tr>
               	<tr><td class="td_left">Draugi mani sauc:</td><td><input class="field" name="nickName" /></td></tr>
               	<tr><td class="td_left">Klubs/apvienība, kuru tu atbalsti:</td><td><input type="file" name="clubUpload"></td></tr>
               	<tr><td class="td_left">Es:</td><td><select name="marriage"><?php include("functions/getMarriage.php"); ?></select></td></tr>
               	<tr><td class="td_left">Pievienot savu foto:</td><td><input type="file" name="photoUpload"></td></tr>
           	</table>
           	<a href="javascript:document.reg2.submit()" class="button">Reģistrēties</a>
           	<input type="hidden" name="checkReg2" />
           	</form>

 

tas tā aptuvenam ieskatam.

 

Ceru uz jūsu palīdzību.

 

Ar cieņu,

Daniels

 

Problēma atrisināta, var slēgt ciet.

Edited by xfr33
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...