I need to create a PHP script to display different snippet of code based on URL token.
So, I provide a URL to another website: [url removed, login to view];group=2&head=12
When someone clicks on that URL (which is coming to my page)
<a href="[url removed, login to view];><img src="/img/head12.jpg" border="0" alt="head12"></a>
head12 content here
If [url removed, login to view];group=2&head=10 URL is clicked on:
<a href="[url removed, login to view];><img src="/img/head10.jpg" border="0" alt="head10"></a>
head10 content here
I am going to have 22 variables for the URI token. So, this code must be really optimized.
Also, there will be a session cookie that will expire within 20 min. or whatever time I provide.
In a nutshell, based on the URL token I want to serve a different image with different text.
Shouldn't be a hard script. If you can provide example on your own website that would be great. Once accepted I will provide you with FTP info to mysite where you can implement the code.