Bo Larsson's Internet Server Software

Bo Larsson's Internet Server Software
All Contents Copyright 1997-2020 by Bo Larsson - Send questions or comments to:
Table of Contents
Last updated 18 Jan 97

Perl CGI Scripts

guestbook 970118 NEW!
classifieds 970115 NEW!
search 961211
table 961201
textrotate 961121
rotater 961119
navigate 961117
redirect 961111
pcounter 961110
mailsend 961110
yourhost 961110
youraddress 961110

Java Applets

jclock 961204 NEW!
jcounter 961114

Links to Other Sites

Fisher's CGI Talk NEW!
JemTek CGI C Library
Dream Catchers CGI Scripts
Web Engineer's Toolbox Home Page
Common Gateway Interface
CGI Made Really Easy
CGI Programmer's Reference
Matt's Script Archive
Netamorphix CGI Page
Selena Sol's Archive

guestbook 970118

view the source

show me an example

Everyone else has a guest book, so I figured it was time to write my own. I didn't want anything fancy, so I made one that's really simple. Users can add their name, email address, and a short comment. Then, when the guest book is displayed, all entries are shown in reverse chronological order, meaning the most recent entry is displayed first.

Obviously, there is a lot that you can add to a script like this, but that's an exercise I will leave to you! Some thoughts I've had are: how about including one more field for favorite URL? Or, how about a set of radio buttons for rating your site? All of this stuff would be easy to add.

A small note: for the first time, I've decided to partition the sections of the script into several subroutines, to make things cleaner. But as always, everything is located in one file. And you don't need any fancy overpowerful libraries to make it work. It's all self-contained.