Looking to show a particular image on the landing page based on the keyword. I'm using cpvlab as my tracker. Can anyone help?
Thanks
Here ya go :
Put this on top of your lp and change pic names and keywords
[PHP]
<?
$kw=$_GET["target"];
if($kw="google.com")
$img="pic1.jpg";
if($kw="yahoo.com")
$img="pic2.jpg";
if($kw="bing.com")
$img="pic3.
?>
[/PHP]
and this where you want the image to be shown :
<img scr="<?=$img?>" />
wow, fast service. thanks 
Also, will this work with a partial match or is it exact match?
for example if i use if($kw="google")
will the same image also show for google.com, google.net and google.org?
thanks again
For partial matches, you are going to need to use preg_match. Something like this:
<?php
$target = $_GET['target'];
if (preg_match('/google/', $target) == 1) {
$image = "google.jpg";
} elseif (preg_match('/yahoo/', $target) == 1) {
$image = "yahoo.jpg";
} else {
$image = "bing.jpg";
}
?>
[PHP]
<?
$kw=$_GET["target"];
if($kw="google.com")
$img="pic1.jpg";
if($kw="yahoo.com")
$img="pic2.jpg";
if($kw="bing.com")
$img="pic3.
[/PHP]
is that shorthand or something? shouldn't it be?....
[PHP]
<?
$kw=$_GET["target"];
if($kw="google.com"){
$img="pic1.jpg";
}
if($kw="yahoo.com"){
$img="pic2.jpg";
}
if($kw="bing.com"){
$img="pic3.jpg";
}
?>
[/PHP]
This is how I code PHP in my mind:
<?
if the keyword is walmart.com then echo img3
}
?>
Here's how I would code it:
[PHP]
<?php
$kw = strtolower(trim($_GET["target"]));
$default_img = 'default.jpg';
switch($kw)
{
case 'google.com':
case 'goo.gl':
$img = 'pic001.jpg';
break;
case 'yahoo.com':
case 'yahoo.net':
$img = 'pic002.jpg';
break;
case 'imgrind.com':
$img = 'grindhard.png';
default;
$img = $default_img;
break;
}
?>
[/PHP]