Mythic Beasts

Guestbook

There are two parts to any guestbook system. There is a form for your visitors to add their comments to, and a script which collates them and shows who has signed your guestbook.

Guestbook Form

The guestbook form is just a standard form which must contain certain fields in order for your visitors to sucessfully sign it. You may also include a hidden field which provides an URL to redirect your visitors to once they have signed the site.

If you have never used an HTML form before then please just copy the template form below.

The form must start with the following HTML:
<form action="/cgi-bin/postgb.pl" method="POST">

Here's a list of the fields and what they do:

FieldDescription
name The name of your guest.
email The email address of your guest.
town The town of your guest.
url The homepage of your guest.
comments His/her comments.
redir An url to redirect them to once they have completed the form. (Otherwise they will be shown a generic "Thank you" page).
emailowner The email address to be notified when a new entry is added to your guestbook.

All of the above fields are required in your form except redir. redir is however very useful. It is best to hide the redir field like this:
<input type="hidden" value="http://www.mythic-beasts.com/">

To see an example of the form look at the Template form

View Guestbook Page

The guestbook script writes your Guestbook entries into a file in your web directory called gb/GuestBook.html

The permissions on this folder must be left as they are in order for the script to work.

To show the contents of this file on one of your pages, rename it so that it has an extension of .shtml and then place the following somewhere on the page:
<!--#include virtual="/gb/GuestBook.html" -->

Copyright © 2000-2008 Mythic Beasts Ltd. All Rights Reserved.