日期:2014-05-17  浏览次数:20696 次

如何判断b.asp是否从a.asp连接过来的
如何判断b.asp是否从a.asp连接过来的。
如果不是,就返回到c.asp

------解决方案--------------------
dim strPath
strPath = Request.ServerVariables( "HTTP_REFERER ")
if lcase(mid(strPath, instrrev(strPath, "/ ") + 1)) <> "a.asp " then
response.redirect( "c.asp ")
end if
------解决方案--------------------
Request.ServerVariables( "HTTP_REFERER ")
取得上一页的http地址及文件名