The guestbook data is written by index.php directly to data.txt, a simple textfile, from which it also reads data to reproduce on the same page. There's a cheeky little PHP redirect involved that makes it so that refreshing the page doesn't repost the message. There's also an even cheekier little field in the form that appears 1000 pixels left of your viewport. You don't see it, but bots do, and if they put a value in that field, nothing is posted - it's primitive spam control.
Somewhere in the code, you'll find two commented out lines (preceded by //); if you uncomment those and input your email address, you'll get an email for each new message. Neat stuff.
I hereby publish this guestbook into the public domain. Use it, adapt it, go forth and be merry, no credits required.