Link question...

Discussion in 'Programming' started by MCJim, Aug 16, 2008.

  1. #1
    A user clicks a link on another website, perhaps Google, and goes to your website. What script would you use to see what website your visitor was at before he/she clicked a link to your site?

    I've seen this before, so I'm sure its possible, I just don't know how its done.
    Thanks! :)
     
    MCJim, Aug 16, 2008 IP
  2. vasildb

    vasildb Well-Known Member

    Messages:
    845
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #2
    In PHP this line of code will tell you that
    echo $_SERVER['HTTP_REFERER'];
     
    vasildb, Aug 16, 2008 IP
  3. MCJim

    MCJim Peon

    Messages:
    163
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks a lot, I will try that out :D
     
    MCJim, Aug 16, 2008 IP