|
|
| FORUM IN ASP |
|
In this tutorial I will show you how to make a simple forum on your site.
I will use a database to store the the data.
|
The Database
|
|
In this tutorial I use two tables to store the data; tbForumTopic and tbForumReply.
The ID column is the relation between these tables.
|
display.asp
|
|
This file display all the the topics and replies that users have posted.
|
theTopic.asp
|
|
This file display a specific topic.
|
addTopic.asp
|
|
When you shall add a topic into the forum, I have made a file where you can
write the topicname, your name and a message.
|
addReply.asp
|
|
This file gives you the possibility to reply a topic. When you are in a topic and
press the reply, this site will apear.
|
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
|
insertTopic.asp
|
|
This file inserts the topic into the db. You set the limit for the text sizes in
the db. I have not made an extra check to see in this file to check the size
of the message, title and name.
View Source for this file
|
insertReply.asp
|
|
This file inserts the reply into the db. You set the limit for the text sizes in
the db. I have not made an extra check to see in this file to check the size
of the message, title and name.
View Source for this file
|
Download The Source
|
Category
|
Programming with ASP
|
|
Author
|
Tommy Johannessen
|
|
|
|