Re: Uploading more than one file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you named the fields like this:
 
<input type="file" name="files[file_name_one]" /> 
<input type="file" name="files[file_name_two]" /> 
<input type="file" name="files[file_name_three]" /> 

Then did something like (or whatever):

<?PHP
foreach ($_FILES["files"]["error"] as $key => $error) {
    echo $key."<BR>";
    echo $_FILES["files"]["tmp_name"][$key]."<BR>";
    echo $_FILES["files"]["name"][$key]."<BR>";
}
?>

Would that do what you need to get done?




-k.


		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux