Re: Arrays from forms....

From: Date: Fri, 01 Dec 2006 03:55:54 +0000
Subject: Re: Arrays from forms....
References: 1 2 3 4 5 6 7  Groups: php.db 
Request: Send a blank email to php-db+get-42786@lists.php.net to get a copy of this message
Gary E. Terry wrote:
If I print them, there's nothing. all three Here is the same file, in test mode... <?php include "db.inc.back.php"; foreach ($_FILES["pictures"]["error"] as $key => $error) { if ($error == UPLOAD_ERR_OK) {
       echo "$error_codes[$error]";
       move_uploaded_file(
         $_FILES["pictures"]["tmp_name"][$key],
         "bikeimages/" .$_FILES["pictures"]["name"][$key]
       ) or die("Problems with upload");
       ${"image".$key} = $_FILES['pictures']['name'];
} }
Hmm, looks ok. If you: print_r($_FILES["pictures"]); and print_r($_FILES["pictures"]['error']); do you get stuff there ? -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#42786) next »