Skip Navigation.

CGI Guestbook

Guestbook CGI Instructions.

Description.

This is a CGI script for a simple guestbook you can add to your web-page. If you follow these instructions, you'll end up with something pretty sparse, but you can add images or navigation bars to integrate it within your site.

This is it in action in the site Zach made for his wedding guests to visit.

Installing.

First of all, create a directory within your CGI directory and call it guestbook. If you don't already have a CGI directory, go ahead and make that directory first. Remember that many machines are case sensitive, so CGI is a different directory from cgi.

Then copy each of the following files into your /guestbook directory.

This one should be saved as "entry.html" --

entry.txt [This is the entry form your guests will use to make their entries.]

Save each of these as CGI files (change the .txt to .cgi) --

guestbook.txt [This generates a page of all the entries in chronological order and links to the entry page for your guests to make their new entries.]
write.txt [This script simply creates a data file from the entry.html page and automatically redirects your guest to the refreshed guestbook.cgi page.]

Using the guestbook.

To use your guestbook, point your visitors to "guestbook.cgi" (with whatever else you need for the pathway. For instance, your guestbook.cgi will have the full path of http://www.nwe.ufl.edu/~username/cgi/guestbook/guestbook.cgi)

This CGI is courtesy of Zach Whalen.

Back