Hi, Im trying to get a webpage to show an image depending on which keyword the user had used to get to my page. Im doing a PPC click campaign.
PHP Comparing URL Text
10
Hi,
Im trying to get a webpage to show an image depending on which keyword the user had used to get to my page. Im doing a PPC click campaign.
For example
When a user clicks my ad they got through the url
http://mysite.co.uk/?keyword={keyword}
Now what I need to do is display an image that is relevent to that keyword on my page.
e.g
http://mysite.co.uk/?keyword=shetland pony
Now I want the code to grab "shetland pony" and display a picture of one that I will have stored in the wordpress library.
But the code needs to be robust enough to understand it needs to look for that word anywhere.
eg
http://mysite.co.uk/?keyword=scottish shetland pony
Should also bring out the pony picture. If none of the keywords match my IF statements it should show nothing at all.
Hope that makes sense
Im trying to get a webpage to show an image depending on which keyword the user had used to get to my page. Im doing a PPC click campaign.
For example
When a user clicks my ad they got through the url
http://mysite.co.uk/?keyword={keyword}
Now what I need to do is display an image that is relevent to that keyword on my page.
e.g
http://mysite.co.uk/?keyword=shetland pony
Now I want the code to grab "shetland pony" and display a picture of one that I will have stored in the wordpress library.
But the code needs to be robust enough to understand it needs to look for that word anywhere.
eg
http://mysite.co.uk/?keyword=scottish shetland pony
Should also bring out the pony picture. If none of the keywords match my IF statements it should show nothing at all.
Hope that makes sense
- Brandon Tanner
- [1] reply
- marine1983
- [1] reply
- marine1983
- [1] reply
- marine1983
- [1] reply
Next Topics on Trending Feed
-
10