









CGI Scripting
Web Hosting
.
| 
Overview
A Guestbook allows visitors to leave a little information and a comment about themselves and
logs each new entry at the top. You have the option to receive an e-mail with every new addition to your
guestbook. Also, the script will eliminate any fields that are not filled in by the visitor. However, the
visitor must fill in their name and a comment, the others are optional. Also, I have made several graphics
that accompany this script. This script is wrritten in Perl(CGI).
Script in action
Add to my Guestbook
Download - (zip file)
Zip file - (~22.7 kb)
Script & Files
Count.cgi - chmod 755
Read Me
Variables
This is the directory where your 'guestbook.html' file will be kept.
For instance, my guestbook is found on the page
'http://www2.bc.edu/~malonejr/guestbook/guestbook.html'.
You MUST have the complete directory or else it won't work.
If you don't know it, ask your service provider.
$directory_gbook = "/www/guestbook/guestbook.html";
The following three are just the URL's of 'guestbook.html', 'guest.cgi'
and the directory where you will store the images that came with the zip file.
$guestbook = "http://www.bc.edu/guestbook/guestbook.html";
$cgi = "http://www.bc.edu/guestbook/guest.cgi";
$base = "http://www.bc.edu/guestbook/";
These are the images for the Missing Pages and the Thank You Page.
Don't touch, unless you really know what your are doing!
$gif1 = "add.gif";
$gif2 = "miss.gif";
$gif3 = "thanks.gif";
$gif4 = "blueline.gif";
This is in case YOU want to be notified if an addition is made to your
guestbook. If so, let $mail = 1 and type in your e-mail address. Otherwise,
type $mail = 0 and let the $mailto be blank.
$mail = 1;
$mailto = 'guestbook@yourname.com';
|
|
|
|
All Rights Reserved - Terms |
 |
|