RE: [PHP-DB] Arrays from forms....
| From: | Gary E. Terry | Date: | Fri, 01 Dec 2006 04:02:40 +0000 |
| Subject: | RE: [PHP-DB] Arrays from forms.... | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42787@lists.php.net to get a copy of this message | ||
Nope... here is the output.
"-- -- Array ( [error] => )"
-----Original Message-----
From: Chris [mailto:dmagick@gmail.com]
Sent: Thursday, November 30, 2006 10:56 PM
To: Gary E. Terry
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] Arrays from forms....
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/
Attachment: [application/x-pkcs7-signature] smime.p7s
Attachment: [application/x-pkcs7-signature] smime.p7s