I'm looking for a script (ideally in PHP) that I can embed within my website that will export the referring domain URL, particuarly when someone clicks on a link to my site from another site or does a search query. I want this variable to be stored in a session and so when the user completes a form or specific operation, the referring page hyperlink gets output with the message.
I already have the form set up but just need to know if there's a better way than doing it with Javascript which I have tried but it seems to be quite unreliable. I had a PHP one working but unfortunately it was only generating the URL of the last page that the user was on, as opposed to the last domain/URL.
Any help is greatly appreciated.
Thanks.


Reply With Quote

Bookmarks