abstract:
<option value="tet3">tesestt3</option>
<option value="tet4">esttestest4</option>
<option value="tet5">testesestt5</option>
<option value="tet6">testest36</option>
<option value="tet7">testest37</option>
<option value="tet8">testest38</option>
</select>
Any insight ....??
Originally Posted by devinia
Hi,
I am trying to use the multiple attribute with a select listbox - i have it looking ok but when i check the passed values i only see the last item chosen. I thought the point of multiple was to send a comma separated list of values to the server.
I read that multiple does not work with all browsers - i develop and check my markup in 5 primary browsers (IE, FF, Moz, NN, Opera) but multiple doesn't seem to work in any of them!!!
This is my select:
Code:- <select name="lstAddToViews" size="4" multiple="multiple" class="listmenu">
- <option value="test2">tsestestt2</option>
- <option value="tet3">tesestt3</option>
- <option value="tet4">esttestest4</option>
- <option value="tet5">testesestt5</option>
- <option value="tet6">testest36</option>
- <option value="tet7">testest37</option>
- <option value="tet8">testest38</option>
- </select>
Copy Code Any insight ....??
Yes you are right, the results could be returned as a list (CSV). This is all depending on the Server side language that you wish to use. as kk5st stated if you are using php, you will have to declare the "name" attribute as an array. But i know with coldfusion you do not need to do anything and the results will return with a simple list that you can loop thought with cfloop. Hope this helps. |