CGI/PERL Tutorial over the Web

Click to go to the PREVIOUS page. Click to go to the INDEX page. Click to go to the NEXT page.

SLIDE #12 A SURVEY FORM


In this twelveth slide, we introduce a survey form calling a CGI program

1. THE SURVEY FORM:

<html><head><title>Survey Form</title></head>
<body>
<h1>A Survey Form<h1>
<p>
<form action="http://www.claywall.com/cgi-bin/CGI/survey.cgi">
<p>Name: <input type="text" name="name" size=30 maxsize=50>
<p><input type="checkbox" name="purchaser" value="yes">
I am authorized to make purchases.
<p>IT budget:
<br><input type="radio" name="budget" value="1000">Less than $10,000
<br><input type="radio" name="budget" value="10000">From $10,000 to $10,000
<br><input type="radio" name="budget" value="100000">From $100,000 to $1,000,000
<p>Current job responsibility:
<select name="job" size=1>
<option value="senior">Senior Management
<option value="management"> Management
<option value="engineer">Engineer
<option value="consultant">Consultant
<select>
<p>Comments:
<br><textarea name="comments" wrap="virtual"><textarea>
<br><input type="submit"> <input type="reset">
</form></p></body></html>

2. FORM DESCRIPTION:

The first line is the HTML page header.

The second line displays the paragraph header

The third line describes the action to be taken when submitting the form:
<form action="http://www.claywall.com/cgi-bin/CGI/survey.cgi">
which specifies the URL of the location of the CGI program.

The fourth and following lines display the form elements:

The next to last line displays the submit element:
<br><input type="submit"> <input type="reset">

The last line closes the form, the paragraph, the body and the HTML tag.


© Copyright 2002 International Customized Software Co.