Home  >  Article  >  Backend Development  >  Notice: Undefined index: HTTP_REFERER in,该如何解决

Notice: Undefined index: HTTP_REFERER in,该如何解决

WBOY
WBOYOriginal
2016-06-13 12:24:432784browse

Notice: Undefined index: HTTP_REFERER in
Notice: Undefined index: HTTP_REFERER in
无法登录网站后台,出现这个提示,以前可以登录的,请教这是怎么回事?
------解决思路----------------------
改为
define('PREV_URL', isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : ''); //上一页地址

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn