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 #9 WRITING TO A FILE


In this nineth slide, we introduce a form calling a CGI program writing to 
a file.

1. THE FORM:

<html><head><title>Writing to a File</title></head>
<body><h1>Writing to a File<h1><p>
<form action="http://delphi.acast.nova.edu/~jclevin/cgi-bin/CGI/write.cgi">
First Name: <input type="text" name="first">
<br>Last Name: <input type="text" name="last">
<br><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://delphi.acast.nova.edu/~jclevin/cgi-bin/CGI/write.cgi">
which specifies the URL of the location of the CGI program.

The fourth and fifth lines display the text element:
First Name: <input type="text" name="first">
<br>Last Name: <input type="text" name="last">

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

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


© Copyright 2002 International Customized Software Co.