RE: Arrays from forms....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:dmagick@xxxxxxxxx] 
Sent: Thursday, November 30, 2006 11:46 PM
To: Gary E. Terry
Cc: php-db@xxxxxxxxxxxxx
Subject: Re:  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
http://www.designmagick.com/

-- 
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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux