Guestlist Form and CGI

A simple way of interacting with clients that visit a web site is to allow them to sign a guestlist and leave some comments. We have designed a simple form and script that you can use to do this.

Installation

To install the comments form and CGI on your Virtual Private Server you will need to do the following.

  1. Install the Guestlist and Guest Entry Form

    You will need to download the Guestlist HTML source and Guestlist Entry Form HTML source (you can save the source by right-clicking on the links above and selecting Save Target As...) and store it somewhere in your ~/www/htdocs directory structure. The Guestlist Entry Form can be customized by simply changing the values assigned to these variables:

    Be sure that the variable name (MAXENTRIES, PATHNAME, PATHNAME, etc.) for each input field in the Guestlist Entry Form is not altered.

  2. Install the Guestlist CGI

    Connect to your Virtual Private Server via Telnet or SSH and issue the following command.

    % vinstall guestlist

    This will install the guestlist.pl and util.pl files into your ~/www/cgi-bin/library/guestlist directory.

  3. Customize the Appearance of the Guestlist CGI

    Two subroutines in the util.pl file are used to print out header and footer information. These functions are print_header_info and print_footer_info. Feel free to modify these functions such that the CGI outputs pages that are in synch with the motifs of the rest of your site.