our approach
|
contact us
Perl Basics In Pictures
Basics
Variables
Numbers
Subroutines
Logic & Loops
Files
Parse form data with a subroutine
Create a form
Create a new Web page with this code:
<html>
<head>
<title>Dream Car</title>
</head>
<body>
<form method="post" action="http://www.yourwebsite.com/cgi-bin/perlscripts/dreamcar.pl">
<h2>What’s my dream car?</h2>
Make: <input type="text" name="make"><br>
Model: <input type="text" name="model"><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Save the page as
dreamcar.html
in the
PERLSCRIPTS
folder.
<< BACK
NEXT >>