kiat has asked for the wisdom of the Perl Monks concerning the following question:
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".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl cgi - getting the values from select
by Zaxo (Archbishop) on Aug 07, 2004 at 04:41 UTC | |
by kiat (Vicar) on Aug 07, 2004 at 04:47 UTC | |
|
Re: Perl cgi - getting the values from select
by Joost (Canon) on Aug 07, 2004 at 12:23 UTC | |
by bradcathey (Prior) on Aug 07, 2004 at 14:59 UTC | |
by kiat (Vicar) on Aug 08, 2004 at 02:18 UTC | |
|
Re: Perl cgi - getting the values from select
by Prior Nacre V (Hermit) on Aug 07, 2004 at 04:39 UTC | |
by kiat (Vicar) on Aug 07, 2004 at 04:51 UTC | |
by Prior Nacre V (Hermit) on Aug 07, 2004 at 05:26 UTC |