You are here: Re: how to get multiple=multiple values from an optgroup ? « PHP Programming Language « IT news, forums, messages
Re: how to get multiple=multiple values from an optgroup ?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация