You are here: Re: [PHP] Uploading more than one file « PHP « IT news, forums, messages
Re: [PHP] Uploading more than one file

Posted by "-k." on 10/08/13 11:33

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация