Re: getting values from multiple select
| From: | Erik Price | Date: | Thu, 14 Mar 2002 14:05:40 +0000 |
| Subject: | Re: getting values from multiple select | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88493@lists.php.net to get a copy of this message | ||
On Wednesday, March 13, 2002, at 04:31 PM, Scott St. John wrote:
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.Did you try putting brackets at the end of the input names? This tells PHP to put the values into an array, whose key is the name of the input. <select name="choice[]" multiple="yes"> <option value="a">A</option> <option value="b">B</option> <option value="c">C</option> </select> This might work for you, Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com