Once you get the multiple file upload form up, how would you make it so there are variables for each item?
Like, Item 1: temporary folder name size type
Item 2: temporary folder name size type
check out the $_FILES array in the php manual
But when I do this I receive an error.
$zipname = $_FILES['userfile'][1]; print "$zipname<br>"; foreach($zipname) { print "path: "['tmp_name']."<br>\n"; print "name: "['name']."<br>\n"; print "type: "['type']."<br>\n"; print "size: "['size']."<br>\n"; }
of course you do, that doesn't even resemble php code
foreach(array_keys($_FILES) as $cur_file) { echo("path: " . $cur_file['tmp_name'] . "<br />\n"; echo("name: " . $cur_file['name'] . "<br>\n"; echo("type: " . $cur_file['type'] . "<br>\n"; echo("size: " . $cur_file['size'] . "<br>\n"; } //end foreach