The address of the page which referred to the current page.


/ Published in: PHP
Save to your folder(s)

The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.


Copy this code and paste it in your HTML
  1. $_SERVER['HTTP_REFERER']

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.