what i need is: create a redirect page with diffrent content (in same url) depending on source url where visitor come! for exemple :
the redirect page for both visitors X and Y is www.example.com/redirect-page but with different content for the visitor X a (button) with a href button to target1.com for the visitor Y a href (button) to target2.com (sorry for my bad english, i hope get the right answer )
parse_str($_SERVER['QUERY_STRING'], $queries);
$queries["u"] will be the target
$_SESSION["targetValue"] = $queries["u"]$_SESSION["targetValue"]