> For all those who don't know my question from yesterday, I > have a form where I can upload up to 9 files at a time. > Unfortunately, only the first 5 of those files are being > uploaded at any given time.
I haven't specifically checked your program logic but I believe that this is where your problem is. I created a similar php script using your included sample as a base and it quite happily reports a file uploaded for each of the nine form elements. -----8<-----Working Code-----8<----- <html> <head> <title>File Loop Test</title> </head> <body> <?PHP if (isset($submit) && !empty($submit)) { for ($i = 0; $i < sizeof($upfile); $i++) { echo "File $i: "; print_r($upfile[$i]); echo "<br>"; } } ?> <form enctype="multipart/form-data" method="post" name="slAdd" action="loop.php"> <input type="hidden" name="MAX_FILE_SIZE" value="10000000"> <input type=submit name="submit" value="Add"> <br> <hr> <table width="70%"> <tr> <td><input type="file" name="upfile[0]"></td> <td><input type="file" name="upfile[1]"></td> <td><input type="file" name="upfile[2]"></td> </tr><tr> <td><input type="file" name="upfile[3]"></td> <td><input type="file" name="upfile[4]"></td> <td><input type="file" name="upfile[5]"></td> </tr><tr> <td><input type="file" name="upfile[6]"></td> <td><input type="file" name="upfile[7]"></td> <td><input type="file" name="upfile[8]"></td> </tr> </table> </form> </body> </html> -----8<-----Code Snip Ends-----8<----- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php