1.ͶƱϵͳ Դ?投票?
2.求:限制同一IP重复投票asp源码,急!系统
ͶƱϵͳ Դ?源码适合学校的网站源码?
我弄的,一个IP一天只能投票一次
。投票改.,系统math.sqrt源码访问:flycentrury。com。源码爆粉神器源码cn
如果选手机,投票你选择的系统价位是:
……
你可以试验一下
以下是我按你的数据库改的源码
<%
function ips()
dim id
id=Request.ServerVariables("REMOTE_HOST")
if Request.ServerVariables("HTTP_X_FORWARDED_FOR")<>"" then
id=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
end if
ips=id
end function
ip=ips()
set rc=server.CreateObject("adodb.recordset")
sql="select tptime,ip from ip where ip='"&ip&"' and tptime=#"&date()&"#"
rc.open sql,conn,1,1
aa=rc.recordcount
rc.close
set rc=nothing
if aa>0 then
Response.Write "<script>alert('您今天已经投过票啦!');this.location.href='javascript:window.close()';</SCRIPT>"
else
sql="update Vote set ps=ps+1 where id="&pid
conn.execute(sql)
conn.close
set conn=nothing
Response.Write "<script>alert('谢谢您的源码关注,投票成功!投票');this.location.href='javascript:window.close()';</SCRIPT>"
end if
%>
求:限制同一IP重复投票asp源码,系统急!源码
<%
function getIP()
getIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If getIP = "" The投票悬赏任务 java源码n getIP = Request.ServerVariables("REMOTE_ADDR")
end function
if Request.Cookies("mycookie")("userip")<>"" then
Response.Write "<script>alert('一个IP地址只能投一次票,谢谢您的系统参与!');history.go(-1);</script>"
response.End()
else
Response.Cookies("mycookie")("userip")=getIP()
Response.Cookies("mycookie").Expires=date+
end if
%>
把以上代码放在你投票页的源码mysql java源码分析前面就行了
2024-12-23 01:26
2024-12-23 00:41
2024-12-23 00:33
2024-12-23 00:18
2024-12-22 23:48
2024-12-22 23:45
2024-12-22 23:41
2024-12-22 23:16