SoFunction
Updated on 2025-03-02

How to return to previous pages in Multi-Chinese language Original

asp:
Copy the codeThe code is as follows:
<a href="<%=("Http_REFERER")%>">preivous page</a> Or use pictures such as: <img src=http:///Get/asp/00010006/"" alt="<%=("HTTP_REFERER")%>">


js:Just

php:
Copy the codeThe code is as follows:
$url=$HTTP_SERVER_VARS["HTTP_REFERER"];      
  if($url)   {      
        $url_resource=$url;    
  }      
  else{      
$url_resource="Enter directly from the browser";
  }


Note the premise of getting the previous page, which is usually connected through a, and direct input is useless.