How to link back to previous page using $_SERVER[‘HTTP_REFERER’] ?


How to link back to previous page  using $_SERVER given below .

print_r($_SERVER); exit();

You will get List of Keys and Values in Array. Here I’m showing only Keys and Remove Values.


<a href="<?php echo $_SERVER['HTTP_REFERER']; ?>"><< Back</a>


  1. When I originally commented І clicked tһe “Notify me when new comments are added” checkbox ɑnd noᴡ еach timе а ϲomment is added I gget
    several emails with the samе cοmment. Iѕ therе аny way yoս
    can remove people fгom that service? Apρreciate it!

  2. Your style is really unique in comparison to other folks I’ve read stuff from.
    Thanks for posting when you have the opportunity, Guess
    I will just bookmark this web site.


Please enter your comment!
Please enter your name here