Guest Book Script

Based on a guestbook perl script by Matt Wright (mattw@worldwidemart.com). I added a built-in form that allows the user to review their entry as it will look in html before saving it to the file. It preserves the data during review in a form on the same page for editing. No temporary files are necessary.

If you are currently using Matt's Guestbook script then my [guestbk2.pl] (12/4/95) can replace the addguest.html and guestbook.pl (.cgi) files. Just make sure you point your 'Add' link in the guestbook to the guestbk2.pl (.cgi). The new script can use the same [guestbook.html] and [guestlog.html] files. If you have an older version change the <META begin> to <!--begin--> where you want new entries to appear in the guestbook.

See [Matt's Scripts] for the original guestbook script, instructions and related files.

You are welcome to [View my Guestbook] or [Add] an entry to try out this script.

David Efflandt efflandt@xnet.com - [Comment Form]


Modifications to Original Script

  • 6/2/97 added line to weed out <script> tags abused by hackers.


    Script Variables

    Standard time or daylight time is automatically selected.

    If you select to be advised of entries by Email:


    Accessed 49747 times since 1/1/99.

    Home Page efflandt@xnet.com


    Sample guestbook.html and guestlog.html

    Save this page, cut each block of text below and paste to files: <html><head><title>Guestbook</title></head><body> <center><h1>Guestbook</h1></center> Thank you for visiting our pages. We would love it if you would <a href="guestbk2.cgi">Add</a> to this guestbook we are keeping! <hr> <!--begin--> <hr> <ul> <li><a href="/~yourname/index.html">Back to My Home Page</a><br> <li>Scripts and Guestbook created by <a href="mailto:mattw@xtc.net">Matt Wright</a> and can be found at <a href="http://worldwidemart.com/scripts/">Matt's Script Archive</a> <li>Enhanced by <a href="http://www.xnet.com/~efflandt/home.shtml">David Efflandt</a> </ul> </body> </html> <html><head><title>Guestbook Short Log</title></head> <body><h1>Short Log of Guestbook Entries</h1> Below are the entries to the guestbook by domain and time. Included are those that had errors and are noted by <b>ERR</b>.<hr>