I know you really meant :

${"image".($key+1)} = $_FILES['pictures']['name'][$key];

And it works!!! 

Thanks oh so very much!

-----Original Message-----
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 30, 2006 11:46 PM
To: Gary E. Terry
Cc: php-db@lists.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 output: Array -- Array -- Array

Oops this:

${"image".($key+1)} = $_FILES['pictures']['name'];

should be:

${"image".($key+1)} = $_FILES['pictures'][$key]['name'];

Postgresql & php tutorials

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to