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/
[Back to original message]
|