FW: Need to POST multiple values with single name

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

 



Just make sure you use []'s in your name, such as:
<select multiple="multiple" name="bob[]">

Then it will fill $bob as an array, instead of a string.

http://us2.php.net/manual/en/faq.html.php#faq.html.arrays

-Logan

> -----Original Message-----
> From: Maxim.Sedelnikov@xxxxxxxxxxx
[mailto:Maxim.Sedelnikov@xxxxxxxxxxx]
> Sent: Friday, April 27, 2007 4:02 AM
> To: php-general@xxxxxxxxxxxxx
> Subject:  Need to POST multiple values with single name
>
> Need to POST multiple values with single name.
>
> Ex.
> -----------------------------55751342416306771991025074398
> Content-Disposition: form-data; name="licenses"
>
> lic1
> -----------------------------55751342416306771991025074398
> Content-Disposition: form-data; name="licenses"
>
> lic2
>
>
> Function http_post_fields() cannot be used due to an _associative_
array
> of POST values.
>
> Any ideas?
>
> Maxim <sms@xxxxxxxxxxx>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux