Re: Uploading more than one file

From: Date: Mon, 21 Nov 2005 17:41:53 +0000
Subject: Re: Uploading more than one file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-226219@lists.php.net to get a copy of this message
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

« previous php.general (#226219) next »