|
-
Oct 30th, 1999, 09:52 AM
#1
Thread Starter
Lively Member
Is there anything wrong with the code below.
Sub cgi_main()
Dim Boardbd As Database
Dim Messages As Recordset
Dim boardname As String
Dim Name, Email, Subject, Message As String
Workspaces(0).OpenDatabase (boardname & ".mdb")
boardname = GetSmallField("bname")
Name = GetSmallField("name")
Email = GetSmallField("email")
Subject = GetSmallField("subject")
Message = GetSmallField("message")
Set Boardbd = Workspaces(0).OpenDatabase(boardname & ".mdb")
Set Messages = Boardbd.OpenRecordset("bbboard", dbOpenTable)
Messages.AddNew
Messages("name") = Name
Messages("email") = Email
Messages("subject") = Subject
Messages("message") = Message
Messages("parent") = 0
Messages.Update
send ("content-type: text/html:")
send ("<html><title>Message Posted!</title>")
send ("<h1>Your Message Has been Posted!</h1></html>")
End Sub
Please help!!!
-
Jan 25th, 2000, 02:00 AM
#2
New Member
What error code you got?
I code a vb-cgi discussing board since 1999/9.
Maybe I can help something.
It's not in English, but you can see the structure. http://ad.boso.com.tw/scripts/index.exe
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|