0

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

roshambo
  • 2,624
  • 6
  • 31
  • 54

0 Answers0