判断IP,然后限制这个IP一天里只能发一条
<%
IP=Request.ServerVariables("REMOTE_ADDR")
if conn.execute("Select count(*) from book where times>='"&date()&" 0:00:00' and IP='"&IP&"'")(0)<>0 then
response.Write "<script>alert('对不起,今天你已经留过言了!');history.go(-1);</script>"
end if
%>
老大最近还好吧?
你上面判断IP的,是不是还要加个IP字段才行啊?
conn.execute("Select count(*) from book where times>='"&date()&" 0:00:00' and IP='"&IP&"'")[b](0)[/b] <> 0
(0)是什么意思啊?