<!--#includefile="common/conn.asp"-->
<!--#includefile="common/sub.asp"-->
<%
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
Response.Write(server_v1)
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
ifmid(server_v1,8,len(server_v2))<>server_v2then
response.write "Forbid external submission of data"
response.end
endif
iflen(request.form("frmContent"))>1000then
response.write "Input content exceeds the specified number of characters"
response.end
endif
ifrequest.cookies("visitime")<>""then
ifDateDiff("s",request.cookies("visitime"),now())<60then
response.write "Please do not submit comments repeatedly within 1 minute"
response.end
endif
endif
count="全公公公公公公公公公公公公公公公公公公公公公公公公公公公公公公公公公公公公公公公公�
connts=split(connt,",")
Foreachglwordinconnts
ifinstr(request.form("frmcontent"),glword)<>0then
response.write "This keyword has been filtered"
response.end
endif
next
DimUserNam,Comments
Dimfieldlist, Valuelist
UserName=Request.Form("UserName")
Comments=Request.Form("Comments")
newsid=Request.Form("newsid")
IfUserName=""OrComments=""Then
Response.Write("Name or content is not filled in")
Response.End()
EndIf
fieldlist=array("UserName","Comments","newsid")
valuelist=array(UserName,Comments,newsid)
SetobjRs=Server.CreateObject("ADODB.recordset")
objRs.open"Feedback",objConn,1,2
objRs.addnewfieldlist,valuelist
closeI()
response.cookies("visitime")=now()
response.Redirect(server_v1)
%>