">
<%
If request.QueryString("action")="add" then
ucode = Trim(request.form("ucode"))
If ucode <> Trim(Session("Code")) then
Call Msg("請輸入正確的驗證碼!",1)
End if
t1 = Replace_Text(request.form("t1"))
t2 = Replace_Text(request.form("t2"))
t3 = Replace_Text(request.form("t3"))
t4 = Replace_Text(request.form("t4"))
t8 = Replace_Text(request.form("t8"))
ip = GetIP
if t1="" or t2="" or t3="" or t4="" or t8="" then
Call Msg("必填內(nèi)容不能為空!",1)
end if
if ip="" then
Call Msg("非法提交!",1)
end if
SQL = "Select * from bbs order by id"
Call Rs_Open(Rs,SQL,Conn,3,2)
Rs.Addnew
Rs("t1") = t1
Rs("t2") = t2
Rs("t3") = t3
Rs("t4") = t4
Rs("t8") = t8
Rs("ip") = ip
Rs.update
Call Rs_end(Rs)
Call Msg ("咨詢成功,我們會盡快回復(fù)您!$$guestbook.asp",4)
Else
%>
<%
SQL = "Select * from bbs where huifu <> ''order by id desc"
Call Rs_Open(Rs,SQL,Conn,1,1)
If Rs.eof or Rs.bof then
response.write "暫無新聞!"
Else
Call page_code(5)
For i = 1 to rs.pagesize
if Rs.eof then exit for
%>