Quick Question
Posted: Thu Apr 08, 2010 6:04 am
I"m trying to pass some code through a redirect and I'm getting an error.
Anyone have any suggestion?
This is the redirect with the code
<?
$urls = array(
"http://url1.com/?id=<?php echo str_replace('-', ' ', $_GET['id'])?>",
"http://url2.com/?id=<?php echo str_replace('-', ' ', $_GET['id'])?>");
$url = $urls[array_rand($urls)];
$destination = "Location: $url";
header($destination);
?>
Any help is much appreciated.
Thanks!
Anyone have any suggestion?
This is the redirect with the code
<?
$urls = array(
"http://url1.com/?id=<?php echo str_replace('-', ' ', $_GET['id'])?>",
"http://url2.com/?id=<?php echo str_replace('-', ' ', $_GET['id'])?>");
$url = $urls[array_rand($urls)];
$destination = "Location: $url";
header($destination);
?>
Any help is much appreciated.
Thanks!