Posted by Andy Hassall on 10/13/06 21:12
On 13 Oct 2006 11:38:57 -0700, "nephish" <nephish@gmail.com> wrote:
>i have an html page that uses a select element with optgroups. I want
>multiple="multiple"
>but when i pass it to the php script, i do not know how to get the
>values out.
>
>like this
>
><select name="people" multiple="multiple" >
>
>when this is submitted, are they passed as an array?
Change the name to "people[]" - this causes PHP to process it as an array.
Otherwise you only get one of the selected values.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|