Jump to content

One submit for these two different forms?


cmzone

Recommended Posts

Is it possible for me to have one submit button for these two different forms, or possible merge the two forms into one? not really php but I guess the POST process it... (the enctype attribute on the second form messes with the select option if I merge the two)

 

echo 'Product '.$model.' submitted successfully!<br /><br />
Select Maker from the list and Submit the Product Picture 
(picture must have same name as the model name)
<br />
//FIRST FORM
<form action="uploader.php" method="POST">
<select name="modelmaker">
<option>Select</option>
<option>Hanns-G</option>
<option>Acer</option>
<option>HP</option>
<option>Samsung</option>
<option>Viewsonic</option>
<option>BenQ</option>
<option>Dell</option>
<option>Westinghouse</option>
<option>LG</option>
<option>Sony</option>		
</select></form>

//SECOND FORM
<form enctype="multipart/form-data" action="uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>'

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.