关于("HTTP_REFERER")问题
我想获取上一个页面的地址用COOKIES保存,为了注册完后能再回到那个页面。就像CHINAREN的一样,但是当两个页面的同一路径下的时候,我能获取正确的上一个页面的地址,但如果上一个页面跟获取路径的页面不在同一目录下时,就不能获取了。请大侠指教!!!谢谢!
jumpurl2=Request.ServerVariables("HTTP_REFERER")
问题点数:50、回复次数:4Top
1 楼saucer(思归)回复于 2002-09-10 10:30:10 得分 0
add a path to your cookie:
path=/;Top
2 楼9728(生菜种子)回复于 2002-09-10 10:35:18 得分 0
我是用这个代码进入注册页面的。
<script language="">
function votedo(){OpenWindow=window.open('../sanguobbs/reg.asp')};</script>
<input onClick="votedo()" type="button" value="注册" name="Button">
取不到。
Top
3 楼9728(生菜种子)回复于 2002-09-10 10:38:51 得分 0
我明白是怎么回事了,就是用JS提交过来就不行了。如果我要保持用INPUT提交的话代码应该怎么样?请大侠指教!Top
4 楼saucer(思归)回复于 2002-09-10 11:07:32 得分 50
from http://www.aspfaq.com/show.asp?id=2169
What is wrong with Request.ServerVariables("HTTP_REFERER")?
The situations where this servervariable works include the following methods of a browser loading a URL:
A straight HTML <a href>
A form submit (POST or GET) using a submit button or <input type=image>
A form submit (POST or GET) using JavaScript
The situations where it doesn't work:
A link from Favorites
A click on 'Home' or a Link with a defined URL
A JavaScript location.href or location.replace()
A page linked from HierMenus (details)
Typing the URL directly in the browser
Launching a clickable URL from an e-mail or Word document
Using Response.Redirect / Server.Transfer
Using Response.AddHeader or <meta http-equiv=refresh> to redirect
Loading the URL with XML (see Article #2173)
Top
相关问题
- Request.ServerVariables("http_Referer")
- 关于request.servervariables("http_referer")?
- 如何修改http头里的HTTP_REFERER
- Request.ServerVariables("HTTP_REFERER")的用法
- 取不到Request.ServerVariables("HTTP_REFERER")
- 什么是Referer HTTP 标头?
- 无法获取$_SERVER["HTTP_REFERER"]
- http://www.izy.cn/travel/7e/1623.html?referer_id=1164534
- HttpWebRequest.Referer 属性为:获取或设置 Referer HTTP 标头 的值。什么是Referer HTTP 标头?
- 如何向远程服务器的传送伪造的http头(http_Referer)??




