'0') { $s = $CatInfo[1]; } } if(!empty($_POST[search_country])) { $search_country = $_POST[search_country]; } if(!empty($_POST[search_state])) { $state = $_POST[search_state]; } if(!empty($_POST[search_city])) { $search_city = $_POST[search_city]; } if(!empty($_POST[search_PropertyType])) { $search_PropertyType = $_POST[search_PropertyType]; } if(!empty($_POST[MinPrice])) { $min = $_POST[MinPrice]; } if(!empty($_POST[MaxPrice])) { $max = $_POST[MaxPrice]; } if(!empty($_POST[MinRooms])) { $rooms1 = $_POST[MinRooms]; } if(!empty($_POST[MaxRooms])) { $rooms2 = $_POST[MaxRooms]; } if(!empty($_POST[MinBath])) { $bath1 = $_POST[MinBath]; } if(!empty($_POST[MaxBath])) { $bath2 = $_POST[MaxBath]; } if(!empty($_POST[AgentID])) { $agent = $_POST[AgentID]; } if(!empty($_POST[old])) { $before = $_POST[old]; } if(!empty($_POST[NearSchool])) { $school = $_POST[NearSchool]; } if(!empty($_POST[NearTransit])) { $transit = $_POST[NearTransit]; } if(!empty($_POST[NearPark])) { $park = $_POST[NearPark]; } if(!empty($_POST[OceanView])) { $ocean_view = $_POST[OceanView]; } if(!empty($_POST[LakeView])) { $lake_view = $_POST[LakeView]; } if(!empty($_POST[MountainView])) { $mountain_view = $_POST[MountainView]; } if(!empty($_POST[OceanWaterfront])) { $ocean_waterfront = $_POST[OceanWaterfront]; } if(!empty($_POST[LakeWaterfront])) { $lake_waterfront = $_POST[LakeWaterfront]; } if(!empty($_POST[RiverWaterfront])) { $river_waterfront = $_POST[RiverWaterfront]; } $url = "search.php?c=$c&s=$s&search_country=$_POST[search_country]&search_state=$_POST[search_state]&search_city=$_POST[search_city]&search_PropertyType=$_POST[search_PropertyType]&MinPrice=$min&MaxPrice=$max&rooms1=$rooms1&rooms2=$rooms2&bath1=$bath1&bath2=$bath2&AgentID=$agent&before=$before&school=$school&transit=$transit&park=$park&ocean_view=$ocean_view&lake_view=$lake_view&mountain_view=$mountain_view&ocean_waterfront=$ocean_waterfront&lake_waterfront=$lake_waterfront&river_waterfront=$river_waterfront"; header("location:$url"); exit(); } require_once("includes.php"); /* //create the category menu $CategoryMenu = "\n"; */ //create the state menu $StateMenu = "\n"; //create the city menu $CityMenu = "\n"; //create the country menu $CountryMenu = "\n"; //create the PropertyType menu $TypeMenu = "\n"; //create the Price Minimum menu $MinPrice = "\n"; //create the max price menu $MaxPrice = "\n"; //bedrooms $MinBed = "\n"; $MaxBed = "\n"; //bathrooms $MinBath = "\n"; $MaxBath = "\n"; //agents menu $q1 = "select AgentID, FirstName, LastName from re2_agents order by FirstName, LastName"; $r1 = mysql_query($q1) or die(mysql_error()); $AgentsMenu = "\n"; require_once("templates/HeaderTemplate.php"); require_once("templates/AdvancedSearchTemplate.php"); if(!ereg("index.php", $_SERVER[SCRIPT_NAME])) { require_once("templates/FooterTemplate.php"); } ?>