I managed to find a host to put up the PHP guest book online. You can check it out here. Also, for some reason, the code which I had uploaded in my previous post did not work on that server. I have modified the script slightly – only the order of statements.
Update: I have updated the link to the online guestbook since my old account expired. Also the code has been updated which I will post in a few days