$value) { if(in_array($name, array("AID", "BID", "Debug", "PHPSESSID"))) continue; $string = "$name=$value"; if (!strpos($location, "?")) $location .= "?".$string; else $location .= "&".$string; } } header("location: $location"); exit(); ?>