hi, this is the post form action for my forum software... For some reason, when it posts the message, line breaks in the message don't show up.. it is all on one line. Here's the code:
============================================================
<%@ LANGUAGE="VBSCRIPT" %>
<%
Set Conn = Server.CreateObject("ADODB.Connection"
Conn.ConnectionString = "DSN=mattfest"
Conn.Mode = adModeReadWrite
Conn.Open "mattfest", "sa", ""
%>
<%
Author = Server.HTMLEncode(Request.Form("author")
Email = Server.HTMLEncode(Request.Form("email")
Subject = Server.HTMLEncode(Request.Form("subject")
Message = Server.HTMLEncode(Request.Form("message")
IP = Request.ServerVariables("REMOTE_ADDR"
Original = Request.QueryString("original"
TopicID = Request.QueryString("topic"
theDate = NOW
'Cookies! mmmm
' Sets cookies for the post form
Response.Cookies("lith2k"("Author"= Request.Form("Author"
Response.Cookies("lith2k"("Email"= Request.Form("Email"
Response.Cookies("lith2k".Expires= dateAdd("d", 90, now)
%>
<%
sSQL = "INSERT INTO Messages(ForumID, Author, Email, Date, Subject, Message, Original, IP) Values(" & TopicID & ", '" & Author & "', '" & Email & "', '" & theDate & "', '" & Subject & "', '" & Message & "', " & clng(Original) & ", '" & sIP & "')"
Set RS = Conn.Execute(sSQL)
Conn.Close
Response.Redirect "main.asp?topic=" & TopicID
%>
============================================================
have any idea what's wrong?
============================================================
<%@ LANGUAGE="VBSCRIPT" %>
<%
Set Conn = Server.CreateObject("ADODB.Connection"
Conn.ConnectionString = "DSN=mattfest"
Conn.Mode = adModeReadWrite
Conn.Open "mattfest", "sa", ""
%>
<%
Author = Server.HTMLEncode(Request.Form("author")
Email = Server.HTMLEncode(Request.Form("email")
Subject = Server.HTMLEncode(Request.Form("subject")
Message = Server.HTMLEncode(Request.Form("message")
IP = Request.ServerVariables("REMOTE_ADDR"
Original = Request.QueryString("original"
TopicID = Request.QueryString("topic"
theDate = NOW
'Cookies! mmmm
' Sets cookies for the post form
Response.Cookies("lith2k"("Author"= Request.Form("Author"
Response.Cookies("lith2k"("Email"= Request.Form("Email"
Response.Cookies("lith2k".Expires= dateAdd("d", 90, now)
%>
<%
sSQL = "INSERT INTO Messages(ForumID, Author, Email, Date, Subject, Message, Original, IP) Values(" & TopicID & ", '" & Author & "', '" & Email & "', '" & theDate & "', '" & Subject & "', '" & Message & "', " & clng(Original) & ", '" & sIP & "')"
Set RS = Conn.Execute(sSQL)
Conn.Close
Response.Redirect "main.asp?topic=" & TopicID
%>
============================================================
have any idea what's wrong?