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 #3 A TEXT FORM CALLING A CGI PROGRAM


In this third slide, we introduce a form calling a CGI program.

1. THE TEXT FORM:

<html><head><title>Are you old enough to vote?</title></head>
<body><h1>Are you old enough to vote</h1><p>
<form action="http://www.claywall.com/cgi-bin/CGI/voter.cgi">
Age: <input type="text" name="age">
<input type="submit">
</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/voter.cgi">
which specifies the URL of the location of the CGI program.

The fourth line displays the text element:
Age: <input type="text" name="age">

The fifth line displays the submit element:
<input type="submit">

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


© Copyright 2002 International Customized Software Co.