kevin09
Junior Member
- Sep 15, 2008
- 141
- 66
I could really use some help . I have a script I got from this form and Im trying to use it all i have is the script using it . Im new to the php it a redirect scipt it redirects 8 times . Do i put it as a html file . Heres the script could someone please help fellas thanks
<?php
if(!empty($_GET['id']) && is_numeric($_GET['id']))
{
switch($_GET['id'])
{
case 1:
$url = "http://www.linkbucks.com/link/07524bfe";
break;
case 2:
$url = "http://www.linkbucks.com/link/504a07a1";
break;
case 3:
$url = "http://www.linkbucks.com/link/aaeb58c3";
break;
case 4:
$url = "http://www.linkbucks.com/link/e52ae47e";
break;
case 5:
$url = "http://www.linkbucks.com/link/e213e981";
break;
case 6:
$url = "http://www.linkbucks.com/link/19799b35";
break;
case 7:
$url = "http://www.linkbucks.com/link/1ad44786";
break;
case 8:
$url = "http://www.google.com";
break;
default:
$url = "http://www.linkbucks.com/link/e74d151d";
}
header("Location: $url");
}
else
{
header("Location: http://www.linkbucks.com/link/e74d151d/");
}
?>
<?php
if(!empty($_GET['id']) && is_numeric($_GET['id']))
{
switch($_GET['id'])
{
case 1:
$url = "http://www.linkbucks.com/link/07524bfe";
break;
case 2:
$url = "http://www.linkbucks.com/link/504a07a1";
break;
case 3:
$url = "http://www.linkbucks.com/link/aaeb58c3";
break;
case 4:
$url = "http://www.linkbucks.com/link/e52ae47e";
break;
case 5:
$url = "http://www.linkbucks.com/link/e213e981";
break;
case 6:
$url = "http://www.linkbucks.com/link/19799b35";
break;
case 7:
$url = "http://www.linkbucks.com/link/1ad44786";
break;
case 8:
$url = "http://www.google.com";
break;
default:
$url = "http://www.linkbucks.com/link/e74d151d";
}
header("Location: $url");
}
else
{
header("Location: http://www.linkbucks.com/link/e74d151d/");
}
?>