I'll keep the commentary short on this one, mainly because it really doesn't
do all that much.
Here's a quick run down. We ask for input. If we get it, it gets logged to
a text file which actually contains any HTML code we want in our resulting
page as well as the comments. To show the comments we just include the file
into our script. That's it!
Well almost. For our sanity, we've implemented two other features that you
may want to take out if you are going to use this script. The first
deletes all comments at the first load of the page after midnight. This
way we keep it relatively small. This is after all a sample of a guestbook
and not a real guestbook! The second one (which actually uses the same code
as the first) we built in to let us empty it easily at will. Hopefully,
we'll never need to use it!