COPEAC Dynamic Tracking Code

Status
Not open for further replies.

fwakes

New member
Dec 11, 2007
4
0
0
I've tried to figure it out for the last two days, but I still can't find the answer...

I want to make copeac track my lead per keyword automatically, so I deploy this php code on my joomla index.php site...

Code:
<body>
<?php
$q = $_GET["q"];
if($q == ""){
$q = "";
}
else {
$e = str_replace("-", " ", $e);
}
?>

But when I use the script to call the keyword on affiliate banner.

Code:
<a href="http://www.cpaclicks.com/redirect.asp?a=xxxx&b=xxxxx&d=0&l=0&o=[B]<?php echo ucwords($q); ?>[/B]&p=0">
<img src="http://www.cpaclicks.com/imageredirect.asp?a=xxxx&b=xxxxxx" alt="" border="0" /></a>

it doesn't work because when I put my site url on browser

Code:
http://www.landingpage.com/?q=car

the site will show up but the affiliate banner link turn into this

Code:
http://www.cpaclicks.com/redirect.php?a=xxxx&b=xxxxx&d=0&l=0&o=%3C?php%20echo%20ucwords($q);%20?%3E&p=0

The php can't call 'car' because the script turn into '%3C?php%20echo%20ucwords($q);%20?%3E'

Any suggestion?
 


Status
Not open for further replies.