View Full Version : Multiple selection in list/menu object
ilmus
04-08-2005, 12:22 PM
Hi all,
I'm using a list/menu object to allow user to make multiple selections. From the user's point of view it works fine, but when the form is submitted i receive only one item from the selection. Following is the url for the form in question http://www.isgozo.com/estate.htm
Any ideas how i can receive multiple selections?
Regards
ilmus
The values are send, so that I guess that your server-side application has to be verified.
Or, if this is php, I guess that you should specify in the element's name that it will send an array (name="myselect[]")
vwphillips
04-08-2005, 01:01 PM
see
http://homepage.ntlworld.com/vwphillips/Team/C15A.htm
ilmus
04-09-2005, 10:44 AM
I tried Kor's solution but i'm not sure if i used the array correctly...instead of the selections made i'm getting Array...following is the code i used before:<SELECT name=state size=3 multiple class=body id="state">
<option value="any">Any State</option>
<option value="converted">Converted</option>
<option value="finished">Finished</option>
<option value="furnished">Furnished</option>
<option value="onplan">On Plan</option>
<option value="shell">Shell</option>
<option value="unconverted">Unconverted</option>
</SELECT>
the code i'm using now:
<SELECT name="state[]" size=3 multiple class=body id="state">
<option value="any">Any State</option>
<option value="converted">Converted</option>
<option value="finished">Finished</option>
<option value="furnished">Furnished</option>
<option value="onplan">On Plan</option>
<option value="shell">Shell</option>
<option value="unconverted">Unconverted</option>
</SELECT>
can someone please point out what i'm doing wrong?
It's ok so far, but you must extract now the values upon their index. See also
http://www.codingforums.com/showthread.php?t=45726
ilmus
04-12-2005, 02:19 PM
Thanks for your help Kor...your suggestion will probably work but the problem is more complex than i tought as i'm using the same php file for several forms... :confused:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.