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.
In reply to Web Form with Perl by DOSUser101
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |