level 1
这吧真有趣
楼主
if rst("isguest")=1 and (request.Cookies("qs")("UserName")="" or not isnumeric(request.Cookies("qs")("UserId"))) then
response.write ("<script language=javascript> alert('请先登录!');window.location.href='login.asp';</script>")
response.end
end if
这是现在的代码,当rst("isguest")=1并且用户已经登录时正常显示,否则跳转到login.asp页面,我现在想改成当rst("isguest")=1并且IP地址在某一段IP地址内时正常显示,否则弹出对话框“您无权查看此信息”并返回首页,请大伙帮忙看下怎么修改
2014年12月17日 08点12分
1
response.write ("<script language=javascript> alert('请先登录!');window.location.href='login.asp';</script>")
response.end
end if
这是现在的代码,当rst("isguest")=1并且用户已经登录时正常显示,否则跳转到login.asp页面,我现在想改成当rst("isguest")=1并且IP地址在某一段IP地址内时正常显示,否则弹出对话框“您无权查看此信息”并返回首页,请大伙帮忙看下怎么修改