I wanted to get the previous URL of visitor of my page. For example: If a visitor came to my site via yahoo then I should get the URL www.yahoo.com
Can any one help me to code this problem?
Thank you.
Hello,
The variable is $HTTP_REFERER. Call that on the second page.
Bill
The only problem with $HTTP_REFERER is that (atleast as far as my knowledge with this variable goes) it is usually only set if a visitor clicks on a link from that site. If they type the url into their browser's address bar, then it does not have a referer.
-Josh
If a user types the url in the addressbar the referer is empty because there is no referer. In that case you can not get any referer from the browser.
(Anyway, that's how I have understood it, it might be possible, but I doubt it)
/Staffan