|
|
| GUESTBOOK IN ASP |
|
In this tutorial I will show you how to make a guestbook on your site.
I will use a text file to store the data that the guests come with.
|
The Database
|
I use a table, tbGuestBook, to store the data into.
This table has a ID, Name and Topic column.
|
display.asp
|
|
First I make a basic html page where the user can write name, topic and message.
|
insert.asp
|
|
When you submit the form in display.php, the data must be stored someplace.
Here I will use a textfile to store the message and store the title and
name in a database. If you are not familiar with textfiles or databases and
asp, you can read the tutorials in the asp section concerning this.
View code for insert.asp
|
wrapperclass.asp
|
|
In order to not get to confused, I have wrapped the methods for
updating the database and textfile into a class. This class is used
in the insert.asp. View wrapper class
|
listguests.asp
|
|
I have made an own file that lists the content the guests have written.
I include this in the display.asp so the content get listed under the guestbook.
View Source for this file
|
Download The Source
|
Category
|
Programming with ASP
|
|
Author
|
Tommy Johannessen
|
|
|
|