sql="select*from ms where ipp="&myipdz
dim myipdzmyipdz=Request.ServerVariables("REMOTE_ADDR")
if request.Form("o")="tijiao" then
if trim(request.Form("name"))="" then
Response.Write("<script language=javascript>alert('必须输入留言名!');top.location.href='write.asp'</script>")
Response.End()
end if
if trim(request.Form("word"))="" then
Response.Write("<script language=javascript>alert('必须输入留言!');top.location.href='write.asp'</script>")
Response.End()
end if
set rs=server.CreateObject("adodb.recordset")
sql="select*from ms where ipp="&myipdz
rs.open sql,cn,1,3
if rs.eof then
rs.addnew
rs("name")=tihuan(trim(request.Form("name")))
rs("lx")=TiHuan(trim(request.Form("lx")))
rs("word")=TiHuan(trim(request.Form("word")))
rs("sex")=request.Form("sex")
rs("password1")=request.Form("password1")
rs("date")=now()
rs.update
rs.close
set rs=nothing
cn.close
set cn=nothing
Response.Write("<script language=javascript>alert('留言成功,谢谢你的宝贵意见!');top.location.href='guestbook.asp'</script>")
Response.End()
else
response.Write "重复ip"
response.End()
end if
end if
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
/rt/rtword/write.asp, 第 68 行
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
POST 93 bytes to /rt/rtword/write.asp
name=%CE%D2+&sex=1&lx=%D1%A8%CE%BB&word=%CE%D2%0D%0A&password1=1&Submit=%CC%E1%BD%BB&o=tijiao
2007年7月19日, 16:24:53
rs.open sql,cn,1,3
这是68行