I am wanting to get the previous page url and I read that the below will get the previous url, but it is getting the current url?
<?php
$prev = $_SERVER['HTTP_REFERER'];
echo $prev;
?>
Thanks
I am wanting to get the previous page url and I read that the below will get the previous url, but it is getting the current url?
<?php
$prev = $_SERVER['HTTP_REFERER'];
echo $prev;
?>
Thanks