2perl has asked for the wisdom of the Perl Monks concerning the following question:
When I apply such form, and view the code of the webpage, it will appear as<form method="POST" action="mycgi.pl"> Your name:<input type="text" name="T1" size="20"> Your sex:<input type="radio" value="V1" checked name="R1"> <input type="radio" name="R1" value="V2"> What color you like:<input type="checkbox" name="C1" value="red">red <input type="checkbox" name="C2" value="green">green <input type="checkbox" name="C3" value="blue">blue What sport you like :<select name="D1" multiple size="1"> <option value="football">football</option> <option value="basketball">basketball</option> <option value="running">running</option> </select> tell me others:<textarea rows="2" name="S1" cols="20"> </textarea> <input type="submit"><input type="reset"> </form>
How can I use a fixed module to make the names and the values of the variables 1 to 1, like:<NAME> T1 zhang <NAME> R1 V1 <NAME> C1 red <NAME> C2 green <NAEM> D1 football <NAME> D1 basketball <NAME> S1 i love you! <NAEM> S1 i love this game!
Thanks a lot in advanceC1=red;D1=(football,basketball);S1=(i love you!,i love this game)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(kudra: CGI.pm) Re: a Perl question
by kudra (Vicar) on Aug 29, 2000 at 14:46 UTC | |
|
Re: a Perl question
by Jouke (Curate) on Aug 29, 2000 at 15:25 UTC | |
by merlyn (Sage) on Aug 29, 2000 at 15:51 UTC | |
by Jouke (Curate) on Aug 29, 2000 at 16:06 UTC | |
by merlyn (Sage) on Aug 29, 2000 at 16:16 UTC | |
by Jouke (Curate) on Aug 29, 2000 at 16:24 UTC |