DOSUser101 has asked for the wisdom of the Perl Monks concerning the following question:
I need to create a HTML form that looks something like this:
<form action="contest.pl" method="POST"> <fieldset> <legend>Student Information</legend> <ol> <li><label>Full name: <input type="text" name="nam +e"/></label></li> <li><label>Grade level: <select name="gl"> <option>9th</option> <option>10th</option> <option>11th</option> <option>12th</option> </select> </label></li> </ol> </fieldset> <input type="submit" value="Submit you Request!"/> <input type="reset" value="Reset"/> </form>
I typed up the HTML, but then I couldn't figure out how to have a perl script access this information. To access say, the name, do I need to put:
#!/usr/local/bin/perl print $name;
Shouldn't that print the name that was submitted by the user in the HTML form? Or am I totally missing something. I'm pretty new to perl so I don't know much. However, in the end I want to be able to have the user input their information and then print out a request with their information on it. If anyone knows how I could do this, I would greatly appreciate it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Web Form with Perl
by NetWallah (Canon) on May 05, 2012 at 17:40 UTC | |
by DOSUser101 (Initiate) on May 06, 2012 at 01:13 UTC | |
by Kenosis (Priest) on May 06, 2012 at 01:32 UTC | |
|
Re: Web Form with Perl
by marto (Cardinal) on May 06, 2012 at 09:53 UTC | |
|
Re: Web Form with Perl
by Kenosis (Priest) on May 05, 2012 at 20:54 UTC |