in reply to cgi: Grabbing Multiple input values
I think the problem may be with your naming scheme. As opposed to naming the select box something like "input", try naming it:
-Eric
UPDATE Okay, maybe it's time to kick myself for having a PHP background before I came around to the Perl world :-)
However, what would the proper method be in this scenerio -- If I used HTML::Template to build my template, and CGI.pm to process them.. in that case, what would be the proper thing to name the SELECT element?
And then when it gets to your Perl script, you can treat it as an array. Otherwise, your Perl script really does only see it as one value.input[]; For the full example: <form> <select NAME="input[]" SIZE=3 MULTIPLE> <option VALUE="opt1">option1 <option VALUE="opt2">option2 <option SELECTED VALUE="opt3">option3 </select> </form>
-Eric
UPDATE Okay, maybe it's time to kick myself for having a PHP background before I came around to the Perl world :-)
However, what would the proper method be in this scenerio -- If I used HTML::Template to build my template, and CGI.pm to process them.. in that case, what would be the proper thing to name the SELECT element?
Thanks! :-)a. <select name="myname" multiple> b. <select name="myname[]" multiple>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: cgi: Grabbing Multiple input values
by Anonymous Monk on Jul 03, 2001 at 23:59 UTC |
In Section
Seekers of Perl Wisdom