Dedirect to refferer page

Discussion in 'HTML & Website Design' started by SousukeSagara, Jun 17, 2009.

  1. #1
    I'm looking for a way to redirect a user to the page they previously came from when they select a link. So far I haven't turned up much in what I'm looking for, only redirecting based upon if they came from a specific domain. Can anyone help me out?
     
    SousukeSagara, Jun 17, 2009 IP
  2. emed

    emed Peon

    Messages:
    70
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    something like this:
    <?php if($_SERVER['HTTP_REFERER']) echo "<a href='{$_SERVER['HTTP_REFERER']}'>Go back</a>"; ?>
    Code (markup):
     
    emed, Jun 18, 2009 IP
  3. SousukeSagara

    SousukeSagara Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I'll give it a shot and let you know how it goes.
     
    SousukeSagara, Jun 18, 2009 IP