How to get the previous url using PHP
$_SERVER['HTTP_REFERER']
is the answer
Use the $_SERVER['HTTP_REFERER']
header, but bear in mind anybody can spoof it at anytime regardless of whether they clicked on a link.
$_SERVER['HTTP_REFERER']
is the answer
Use the $_SERVER['HTTP_REFERER']
header, but bear in mind anybody can spoof it at anytime regardless of whether they clicked on a link.