[an error occurred while processing this directive] CGI - A free tutorial for the Total Non-Programmer.
CGI - Let's get startedCGI - Introduction to Perl

The Echo script

This script will display whatever text was entered into the HTML form.  It is a simple example of how the information is passed to your program.  Since you now have a template.txt file with the correct path to Perl and Sendmail, you only need to edit the BODY of the CGI from now on.

 


#!/usr/local/bin/perl
#
&readparse;
print "Content-type: text/html\n\n";
#
#*****************BEGIN BODY*************

print "<h1>Thank you for filling out the form</h1>";

$firstname = $value[0];
$lastname = $value[1];
$email = $value[2];
 
print "Your first name is $firstname<BR>";
print "Your last name is $lastname<BR>";
print "Your e-mail is $email<BR>";
 
 
 
 
 
#***************END BODY******************
 
BACKBreak down the code


Home | WebData - Web Database Software | Javascript | CGI | Consulting | Map Builder | Contact Us | The Press Room