Gary E. Terry wrote:
I know you really meant :
${"image".($key+1)} = $_FILES['pictures']['name'][$key];
Oh yeh ;)
Glad we got there in the end! :)
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
ists.php.net
Subject: Re: [PHP-DB] Arrays from forms
Gary E. Terry wrote:
> OK.. I am a moron.. Forgot that I had changed the name of the field in the
> form, and got sidetracked and didn't change it in the
> php... But, still not working correctly.
>
> Here is the out
Gary E. Terry wrote:
OK.. I am a moron.. Forgot that I had changed the name of the field in the
form, and got sidetracked and didn't change it in the
php... But, still not working correctly.
Here is the output: Array -- Array -- Array
Oops this:
${"image".($key+1)} = $_FILES['pictures']['name
OK.. I am a moron.. Forgot that I had changed the name of the field in the
form, and got sidetracked and didn't change it in the
php... But, still not working correctly.
Here is the output: Array -- Array -- Array
from:
$error) {
if ($error == UPLOAD_ERR_OK) {
echo "$error_codes[
Gary E. Terry wrote:
Nope... here is the output.
"-- -- Array ( [error] => )"
So files aren't being uploaded properly at all.
Does your form have:
enctype="multipart/form-data"
in the form header?
ie
Are your picture fields files?
Upload file:
--
Postgresql & php tutorials
http
Nope... here is the output.
"-- -- Array ( [error] => )"
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
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:
>
Gary E. Terry wrote:
If I print them, there's nothing. all three
Here is the same file, in test mode...
$error) {
if ($error == UPLOAD_ERR_OK) {
echo "$error_codes[$error]";
move_uploaded_file(
$_FILES["pictures"]["tmp_name"][$key],
"bikeimages/" .$_FILES["
27;, '$image3', '$status');";
$result = mysql_db_query("$db", $query) or displayErrorQuery ($query);
echo "";
exit;
*/
?>
I get " -- -- " outputted.
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday, N
Gary E. Terry wrote:
Sorry about that, not CC'ing the list...
the values are not always empty, they should always have something in
them...
There should be 3 images uploading. But, I am sure just to make life
interesting,
there will be times when there could be as little as one uploaded.
I
ssage-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 30, 2006 10:10 PM
To: Gary E. Terry
Cc: PHP DB
Subject: Re: [PHP-DB] Arrays from forms
Gary E. Terry wrote:
> I don't know if we are on the same page here... Maybe we are and I am just
> an idiot.
>
> T
Gary E. Terry wrote:
I don't know if we are on the same page here... Maybe we are and I am just
an idiot.
The fields in my db are image1 image2 and image3.
There are only three fields in the form that is being passed to the
php script. But, on the form they are named "pictures[]".
Here is the
Gary E. Terry wrote:
I have a problem. I have done this before, but can't find the files.
I am using the following function to upload files from a form.
foreach ($_FILES["pictures"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
echo "$error_codes[$error]";
move_
12 matches
Mail list logo