SiteExperts.com Logo Home | Community | Developer's Paradise | Jobs
User Groups | Site Tools | Site Information | Search

Inside Technique : ASP Guest Book
By Scott Isaacs

I created a simple web-site announcing the arrival of my daughter, Arielle. On this site I added a simple guest book for our friends and family to post simple messages. In this article, we show you how to create a very simple ASP-based guest book. Our solution allows you to set-up an address book by setting three variables.

We store the guest book as a simple text file on our server. Everytime a new message is posted we append it to this file. To view the guest book, we simply open the file and include it in the page being sent to the user. Accessing the file system with ASP is easy using the FileSystemObject. To use this object, you need to make sure your ASP files can read and write files to your hard drive (you may have to request the proper permissions from your ISP if you are on a shared server).

Next we show you how our guestbook script works. (We do not provide a live demonstration of the guest book because we do not want thousands of responses :-).

Page 1:ASP Guest Book
Page 2:How it works
Page 3:All the code