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,386
  • 5
  • 28
  • 50

0 Answers0