if (isset($_GET["q"]) && isset($_GET["engine"])) { if ($_GET["engine"]=="google") header("Location: http://www.google.com/search?q=" . $_GET["q"]); else if ($_GET["engine"]=="yahoo") header("Location: http://search.yahoo.com/search?p=" . $_GET["q"]); else if ($_GET["engine"]=="bing") header("Location: http://www.bing.com/search?q=" . $_GET["q"]); } ?>