Problem passing on keywords through Tracking202 lp rotator

Status
Not open for further replies.

ImagesAndWords

StayblCam.com
Nov 7, 2006
2,326
90
0
Scottsdale, Arizona
www.stayblcam.com
I'm having an issue passing on keywords through the Tracking202 landing page rotator script.

So, I have this in the script:
$landingpage[1] = 'http://site.com/landing01.php?t202id=123&t202kw=';
$landingpage[2] = 'http://site.com/landing02.php?t202id=456&t202kw=';
And then at the end of the script I have this:
//include the landing page
include_once($landingpage[$lpNumber].str_replace("-", " ", $_GET["t202kw"]));
But when I call my rotating script, like this:

site.com/rotate.php?t202id=789&t202kw=BLUE GREEN RED

...only the text BLUE gets forwarded to any of the landing pages I'm rotating between. It doesn't pass along the GREEN RED string (which is the rest of the keyword string).

This is my own modified code, as the original LP rotator script doesn't even pass along the t202kw to the landing pages (I tested this first). Only when I added the $_GET function at the end of the include_once line do I get anything passed along.

The problem is, it cuts off at the first space in the long tail keyword passed and only sends the first whole word. I just can't figure out what the heck I'm doing wrong.. :ugone2far:

Any help is appreciated - thanks!
 


Try changing it to... (untested)

Code:
//include the landing page
 include_once($landingpage[$lpNumber].urlencode(str_replace("-", " ", $_GET["t202kw"])));

Other alternative is to remove the str_replace to leave dashes in the KW then you can strip them out on the otherside using the same str_replace you have ^^^
 
Try changing it to... (untested)

Code:
//include the landing page
 include_once($landingpage[$lpNumber].urlencode(str_replace("-", " ", $_GET["t202kw"])));
Other alternative is to remove the str_replace to leave dashes in the KW then you can strip them out on the otherside using the same str_replace you have ^^^

Man... now it seems so obvious what I should have done. Dunno why I didn't think of that right away! :)

Yes - that did the trick, thank you!
 
Status
Not open for further replies.