[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 Guestbook CGI code


#********* BEGIN BODY********************

open (LOGFILE, ">>guestbook.log");

$newline=join('::',@value);

print LOGFILE ("$newline\n");
close LOGFILE;

print "<BODY BGCOLOR=\'BEIGE\'><H1>Thank you.  Your comments have been added</H1>";

#******** END BODY************************


This is the body of the guestbook.cgi program.  Once again, you should:

You should now be able to test the form.  If it works, you will get a beige page thank you for your comments.
You can see if they have been added to the guestbook.log file by going to a Unix command prompt and typing
cat guestbook.log


BACKBreak it down

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