Let's say I am going to save this file in the same perltour folder, so that the pathnames are easy. I plan to call the CGI which it will use "test2.cgi".
I create a page that looks like this. Feel free to copy and paste this
page to your favorite HTML text-based editor.
Name this page testform.htm
, and use your FTP program to upload it to the perltour folder.
<FORM ACTION="test2.cgi" METHOD="POST">
First Name <INPUT NAME="first" TYPE=TEXT SIZE=25><BR>
Last Name <INPUT NAME="last" TYPE=TEXT SIZE=25><BR>
E-mail <INPUT NAME="email" TYPE=TEXT SIZE=30><BR>
<INPUT TYPE=SUBMIT VALUE="Test it">
</FORM>
</BODY></HTML>
IMPORTANT: If your server uses a cgi-bin, then the forms on your HTML
pages must have the script name preceeded with /cgi-bin/. For example,
instead of opening a form with
<FORM ACTION="test2.cgi"
METHOD="POST">
I would now write
<FORM ACTION="/cgi-bin/test2.cgi" METHOD="POST">
Use this form in a CGI |