You are here: Re: POST and multiple select « HTML « IT news, forums, messages
Re: POST and multiple select

Posted by Benjamin Niemann on 07/27/06 15:14

Bert Apperlo wrote:

> How can I send all selections made in a multiple select box?
>
> Example:
> I made a multiple selection box which has 9 values (1 to 9). I select a
> couple of values (e.g. 1,4,9,5 and in the order I mention). When I submit
> the form and I display the content of the POST variable (through php), I
> see that only the 9 is returned.
>
> How can I make it that every selected item is returned?

You'll have to append '[]' to the name of the SELECT element. Then the
variable in $_POST will be an array with all selected values.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/

 

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

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