I need a PHP script to generate different snippet of code based on URL token.
So, I provide a URL ([url removed, login to view];group=adgroup&head=12) to another website:
When someone clicks on that URL (which is coming to my page)
I want my page to generate the following code:
<a href="[url removed, login to view];><img src="/img/imageforhead12.jpg" border="0" alt="textforhead12"></a>
textforhead12 content here
If [url removed, login to view];group=adbanner&head=10 URL is clicked on:
<a href="[url removed, login to view];><img src="/img/imagepathforhead10.jpg" border="0" alt="textforhead10"></a>
textforhead10 content here
I am going to have 13 dynamic content variables based on the head parameter. So, this code must be really optimized. It will not have database, so all of the content will have to be stored in the page or another include.
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 and different text based on the url parameter.
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.