Hi,
Ok, I am not sure if my understand is correct or not, however i figure that you want an URL stick with the GET parameters through out the redirection?
www.example.com/?r=out2win
Heres an example that i could think of ...hope it helps.
Filename: login.php
PHP Code:
<?php
$user = "user";
$pass = "pass";
if($user == $pass){
$url = "main.php?user=".$user;
header('Location: '.$url);
exit;
}
?>
The above example will redirect you to a page(main.php) which is within the current directory and the url will also contain ur $_GET parameters.
You can use the above method to keep routing wherever u want with those $_GET parameters.
Method to retrieve $_GET in the redirected-to page.
PHP Code:
<?php
$user = $_GET['user'];
echo $user;
?>
Bookmarks