I've an web form with two select menus - copy1 and copy2. If users want to add an item from copy1 to copy2, they simply select the item from copy1 and click on a "ADD" link to add the selected item to copy2.
( The implementation comes with javascript code which I'm leaving out for brevity. )<select name="copy1" mutiple size="3"> <option value="1" selected>Item1</option> <option value="2">Item12</option> <option value="3">Item3</option> <option value="4">Item4</option> <option value="5">Item5</option> </select> <select name="copy2" multiple size="3"></select>
Say 3 items are selected and they appear in copy2. The user then hits Submit.
How do I capture the 3 items from copy2 in the Perl script?
I hope my question is clear :)
Thanks in anticipation.
Update: There's an example at the url below:
http://www.mattkruse.com/javascript/selectbox/index.html
The one I'm trying to implement is "Copying values from one select box to another".
In reply to Perl cgi - getting the values from select by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |