I'm wanting to upload files from these input tags...
<INPUT class=nput type=file name=snapshot1>
<INPUT class=nput type=file name=snapshot2>
<INPUT class=nput type=file name=snapshot3>
<INPUT class=nput type=file name=snapshot4>
<INPUT class=nput type=file name=snapshot5>
The code I have for it is:
$filedir = "./images/";
foreach($HTTP_POST_FILES as $snapshot){
$filename = $snapshot['name'];
$filesize = $snapshot['size'];
echo $filename . " size: " . $filesize;
copy($snapshot['tmp_name'], $filedir.$filename);
}
But, it never goes into that for loop, like there aren't any elements in the $HTTP_POST_FILES array, but I know there are.
The form method is POST, and I know the post gets passed correctly because I do some other things with variables from $HTTP_POST_VARS and they work fine.
I've checked for all the proper settings in php.ini file, and they're all good as well.
Any ideas? Thanks...