Re: Help processing multiple select list box

From: Date: Tue, 18 Jul 2000 05:10:04 +0000
Subject: Re: Help processing multiple select list box
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7032@lists.php.net to get a copy of this message
Yeah, using arrays will work. Try this: <form action.... <select name="data[]"> <option value="doh"> </select> </form> in the script that parses should have an array called $data[] with doh in it. You should be able to figure out the rest. Keith, Jeff Wolkove wrote: > When PHP creates variables from a query string, what does it > do with multiple selections from a list box? I tried to process > it as an array, but apparently php did not create an array. I > believe (this was several weeks ago) that only the first instance > of the variable in the query string was recognized. > > I ended up having to parse the query string manually to get > each instance of the variable=value combination. Is there an > easier way? > > Jeff > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#7032) next »