Dynamic pictures in landing pages? Need help with Code

ubermann

Registered Member
Joined
Jul 11, 2008
Messages
51
Reaction score
45
Hi

I have a php landing page for use with PPV. I know how to do dynamic keyword insertion.
But I was wondering what the code would be for inserting dynamic picture based on url?


Lets say for example target url was

gumtree.com then I would want to display pic1.jpg

or if it was

craigslist.com then it would display pic2.jpg

I know there must be way but my php is rudimentary at best.
Any help would be appreciated.

Thanks
 
something like this
Code:
<?php

$targetUrl = "gumtree";
$img[1] = "gumtree.jpg";
$img[2] = "craigslist.jpg";

switch ($targetUrl ) {
    case "gumtree":
        echo $img[1];
        break;
    case "craigslist":
        echo $img[1];
        break;
}
?>
 
Thanks for this. I will give it try tonight.

something like this
Code:
<?php

$targetUrl = "gumtree";
$img[1] = "gumtree.jpg";
$img[2] = "craigslist.jpg";

switch ($targetUrl ) {
    case "gumtree":
        echo $img[1];
        break;
    case "craigslist":
        echo $img[1];
        break;
}
?>
 
Back
Top