> -----Original Message-----
> now, on the same form, i have a multiple select box, where 
> you can select
> multiple values from one select box.  the code is as follows --
> 
> <select name=country size=3 multiple>
[ snip ]
> </select>
> 
> if the user selects more than one country, then if you echo 
> $country, it
> will show you only the last selected value for country.  
> however, what you
> can do is break the query string at the ampersands, figure out all the
> countries the user has selected and put them in an array.  in 
> order to have
> a query string,  the GET mothod must be used.  that solves 
> this problem.

If you name the field "country[]", with the square brackets, all the user's
selections will be in an array named $country when POST'ed. So, you can use
POST to address both problems.

Kirk 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to