Hey guys. I have 6 file boxes on my form all named pics[]. Now, on my next page I want to upload all of these images with a loop.
Here is what I have.
foreach($pics as $btnImage){
$btnImageName=$_FILES['btnImage']['name'];
$btnImageTmpName=$_FILES['btnImage']['tmp_name'];
$btnImageType=$_FILES['btnImage']['type'];
$FullPath = "/var/www/html/clientadmin/progressreports/images/";
If (!empty($btnImageTmpName)){
Copy($btnImageTmpName,$FullPath.$btnImageName);
If(!Copy) error_message("Unable to copy image.");
unlink ($btnImageTmpName);
}//end if
}//end foreach
I am getting no errors, but it's not uploading the files...Any idea what is wrong here?
Thanks!:evilgrin: