Home About Us Products & Services Support Member Services Local Network Specials
View - Pay Bill Webmail Contact Us




Simplehost Support



Simplehost Support



Access Control Panel




Guestbook Script

Special Notes

The Guestbook Installer will overwrite previously installed Guestbook scripts. Do NOT remove the <--begin--> tag within guestbook.html . This tells the Perl script where to insert new entries. You can modify the addguest.html and guestbook.html files to meet your own design standards.

Guestbook Installation Notes

The instruction contained herein is being provided for those whom wish to modify the script or to install multiple versions of this application. Help can be found for this script at http://worldwidemart.com/scripts/

Installation Procedure

  1. Locate and download the following files from Matt's Script Archive:
    • guestbook.pl - The Perl script which adds to the guestbook.html.
    • addguest.html - The form that users fill out to add their entry.
    • guestbook.html - The guestbook file that contained the users' entries.
    • guestlog.html - The short log of all guestbook entries. (optional)


  2. Create a subdirectory named "guestbook" within your web site and upload both guestbook.html and guestlog.html to the new directory

  3. Change the first line of the Perl script to reflect the official path to Perl on our server:

    #!/usr/sbin/perl

  4. There are a few more things that need to be changed in the Perl script:

    # Set Variables

    $guestbookurl - The URL address of your guestbook.html file
    $guestbookreal - The system location of your guestbook.html file
    $guestlog - The system location of your guestlog.html file
    $cgiurl - The URL portion of the address to the guestbook.pl file

    The second and third variables call for a system path which is not the same as a URL. If your domain name was yourdomain.com the system path would be /u/web/yourdo where "yourdo" is the account userid.

    As such, the Set Variables section of the Guestbook script would follow this format:

    # Set Variables

    $guestbookurl = "http://www.yourdomain.com/guestbook/guestbook.html";

    $guestbookreal = "/home/wtnetm/u/s/username/public_html/guestbook/guestbook.html";

    $guestlog = "/home/wtnet/u/s/username/public_html/guestbook/guestlog.html";

    $cgiurl = "http://www.yourdomain.com/cgi/guestbook.pl";

    $date_command = "/sbin/date";

    Be sure to substitute your domain name and username in the example above.
    Note: "/u/s/username" means the first letter of your username followed by a slash, followed by the second letter or your username followed by a slash, followed by your username.

  5. Upload the "guestbook.pl" script to your cgi directory in ASCII transfer mode. Make sure your permissions on your the pl file is set to 711 (rwx,x,x)

  6. Modify the form ACTION attribute within "addguest.html" to reference the guestbook script within cgi as shown below and upload to the "guestbook" directory

    <FORM METHOD="POST" ACTION="/cgi/guestbook.pl">

  7. If you will be using the email feature of the guestbook, you need to make 2 more adjustments to the guestbook.pl ) If you answered 1 to $mail or $remote_mail you will need to modify the below variables:

    $mailprog = '/usr/sbin/sendmail';
    $recipient = 'emailaddy@yourdomainname.com';

You can test the script by referencing either the addguest.html or guestbook.html file via the web.

[ top ]

Special Notes

  • Do NOT remove the <--begin--> tag with guestbook.html . This tells the Perl script where to insert new entries

  • Some possible causes of a SERVER ERROR:
    • Set Variables section within Perl script inaccurate
    • Perl script was not uploaded in ASCII transfer mode
    • Public-write permission not set for guestbook.html (see #5 above)


  • The reference to both the date and sendmail program are correct

  • You can modify the addguest.html and guestbook.html files to meet your own design standards

A Few Options

  • Set the $separator variable to display either a horizontal line or insert a paragraph tag between guest book entries

  • Set the $allow-html variable to allow visitors to use HTML tags within their entries

[ top ]



If you need more help with any of our products or services
please contact us at 1.888.Nationwide (628-4669)