if($_COOKIE[_cstadt]==1) header ("Location: /nbg"); if($_COOKIE[_cstadt]==2) header ("Location: /muenchen"); if (isset($_GET['id'])) { switch($_GET['id']) { case 2: setcookie("_cstadt", "1", time()+(60*60*24*1000)); header ("Location: /nbg"); break; case 3: setcookie("_cstadt", "2", time()+(60*60*24*1000)); header ("Location: /muenchen"); break; } } ?>