Jump to content

Multiple file upload....??


larry777

Recommended Posts

You can do a mutiple file upload just do multiple file inputs and in the name field of the inputs ad [] to the end of it 

So in my form I have something like this:
[code]
<?php
	for($i=1;$i<=5;$i++) {
		echo "<tr>
				<td><input type=\"file\" name=\"upload{$i}\" size=\"30\" /></td>
				</tr>\n";
	}
	?>
?>

 

And then after submitting I loop through each $_FILES[] and do my validation moving etc.[/code]

Link to comment
https://forums.phpfreaks.com/topic/36648-multiple-file-upload/#findComment-174691
Share on other sites

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.