if ($scr == 1) { header ("Location: http://thissite"); } else { $id = $_GET['id']; header("Location: http://thatsite"); }