Cookie User Based On Referrer
I need a script that will check the referrering url of my website and display images based on where they came from.
Basically when a visitors comes to my website from a unique affiliate URL, I will need to change the header image to a different image and cookie that visitor so it always shows that image instead of my regular image.
If the visitors comes to my website without going through an affiliate url, they will see the regular header image.
The affiliate URL they will going to will look something like this.
http://www.AutomatedSalesMachine.com/app/?af=1118285
So the script will do this.
If user comes from www.automatedsalesmachine.com/app/?ff
then show image id=1118285.jpg and cookie computer to always show this image.
If image id=1118285 does not exist, then show regular image.
—-
The image ID will be taken from the last 7 digits in the URL.
—-
Also, I want a simple control panel added so I can upload header images directly from the internet to my website.
And I want this to be a browser based cookie. not an IP cookie.