//Redtie Weather, it's this simple: //Include functions include("functions.php"); if($_REQUEST['search']){ //Search results search($_REQUEST['search']); }else{ //Forecast forecast($loc_id,5,"s"); } //That's all ?>