php - passing multiple variables through lp rotator w/ p202

behnk01

New member
Sep 23, 2009
340
4
0
new england
Yes, my php syntax is rusty. I need help quick. I want to pass my kw's and lp id's from p202 through a url rotator but I don't have time to learn it atm. I'm losing potential money by the minute here. Correct the syntax on this please?

<?php

$urls = array(
“http://www.xxx.com/index2?t202id='.$_GET['t202id'].'&t202kw='.$_GET['t202kw']”,
http://www.xxx.com”,
http://www.xxx.com”)

$url = $urls[array_rand($urls)];
$destination = “Location: $url”;
header($destination);

?>

An example path here would be xxx.com>xxx.com/index8>xxx.com/index8/offer6
 


looks like the problem might be with

“http://www.xxx.com/index2?t202id='.$_GET['t202id'].'&t202kw='.$_GET['t202kw']”,

maybe it should be:
'http://www.xxx.com/index2?t202id='.$_GET['t202id'].'&t202kw='.$_GET['t202kw'],

like that maybe... make sure there is no ending quote, just the comma after the last GET. And make sure to start with the single quote.