ASP大师可以来一个帮我改下这段代码为限制IP或者cookies每天只能打开一次吗 20
<!--#includefile="config.asp"--><%dimuiduid=int(CheckStr(request.QueryString("uid")))...
<!--#include file="config.asp"-->
<%
dim uid
uid=int(CheckStr(request.QueryString("uid")))
set rs=server.CreateObject("adodb.recordset")
rs.open"select * from f_user where u_id="&uid,conn,1,3
if rs.eof and rs.bof then
gotourl "你投票的会员不存在!","javascript:history.back();"
response.End()
end if
rs("u_hits")=rs("u_hits")+1
rs.update
gotourl "投票成功!","javascript:history.back();"
%> 展开
<%
dim uid
uid=int(CheckStr(request.QueryString("uid")))
set rs=server.CreateObject("adodb.recordset")
rs.open"select * from f_user where u_id="&uid,conn,1,3
if rs.eof and rs.bof then
gotourl "你投票的会员不存在!","javascript:history.back();"
response.End()
end if
rs("u_hits")=rs("u_hits")+1
rs.update
gotourl "投票成功!","javascript:history.back();"
%> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询