Re: getting values from multiple select

From: Date: Thu, 14 Mar 2002 03:27:54 +0000
Subject: Re: getting values from multiple select
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-88423@lists.php.net to get a copy of this message
In article <Pine.LNX.4.44.0203131628280.16354-100000@kelly.talon.net>, scott@scottah.com says... > Hi gang- > > I am working on a javascript box that will allow the user to drag values > from one select box to another. I will use this box to set the values. > This is a standard, multiple select box. On the next page I need to > figure out what PHP is doing with the data coming in. > > If I send 5 fields to the next page PHP will show me one when I echo the > variable to the page. If I try to split the varaiable I still get only > one value in the echo. Tried to reponse.write it in asp and I get the > string with comma seperate values. > > Help! If you are using a SELECT MULTIPLE you need to name the item as an array, e.g. NAME="multi[]" - then loop through the array in the target script to extract the values. Don't forget to either define a default selection or check for 'none selected' -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#88423) next »