Everyone saw a variety of ASP forums that were difficult to do, in fact, we can complete a forum that belongs to your own with simple ASP statements. Below I taught you how to use ASP to create a forum that belongs to your own, is it easy to use? At the same time, the writing of a complex forum is also inseparable from the basic steps below, everyone looks closely.
First, establish a document! The simplest forum also has several necessary files, which is: 1. Database, use to store posts! ------- Named: bbs.mdb 2, there must be a database to connect to the database: ---- named: conn.asp 3, publish a message ---- Naming For: Say.asp 4, save the file published in the message ----- Named: save.asp 5, display the file title of the post title ------ Named: index.asp 6, display the content of the post content That is, click the page after the title ----- named: show.asp creation file is the first text document, his format is "file name .txt", we only need to change it to "file name .asp "Second, the main contents of each file 1, bbs.mdb open this database, build a table, named BBS, there are several fields: ID (Automatically give the post number), his data type is set to" Auto No. "Name (used to store the author), the data type is" text "title (the subject of the post), the data type is" text "Body (for the content of the post), the data type is" Remark " 2, conn.asp source code is: <% set conn = server.createObject ("adoDb.connection") conn.open "driver = {Microsoft Access Driver (* .mdb)}; dbq =" & Server.mappath ("BBS This file is like this, the content of the code is studying itself. I don't know how to say it! 3, SAY.ASP source code is: