Can someone check my PHP for me please - Double Meta Refresh Script
I have a double meta refersh in php to blank out the referer.
But if the referer is not blank by the time it gets to the second page what happens?
Could someone fix it so if its not blank it goes back to first page etc.
here it is
1
===
<?php $id = $_GET["id"];
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.website.com/redirect2/?id=$id\">";
?>
===
2
===
<?php $id = $_GET["id"];
$referer = $_SERVER['HTTP_REFERER']; if($referer == "")
{
echo "<meta http-equiv=\"refresh\"content=\"0;url=www.affiliatelink .com\subid=$id\">";
}
?>
===
Also,
Is there a way to redirect it to different websites depending on location?
example.
If the offer im promoting only accepts US traffic is there a way for it to detect that its not US then send it through to the internation website etc.
Thanks everyone
Matthew
The IM World Will Be Shaken to the Core!
Join my list at: IMCool.Biz
New Podcast --> podcast.imcool.biz
The IM World Will Be Shaken to the Core!
Join my list at: IMCool.Biz
New Podcast --> podcast.imcool.biz
The IM World Will Be Shaken to the Core!
Join my list at: IMCool.Biz
New Podcast --> podcast.imcool.biz
The IM World Will Be Shaken to the Core!
Join my list at: IMCool.Biz
New Podcast --> podcast.imcool.biz