require_once("conn.php");
if(isset($_POST[s1_x]))
{
if(!empty($_POST[CategoryID]))
{
$c = $_POST[CategoryID];
}
if(!empty($_POST[search_country]))
{
$search_country = $_POST[search_country];
}
if(!empty($_POST[search_state]))
{
$search_state = $_POST[search_state];
}
if(!empty($_POST[search_city]))
{
$search_city = $_POST[search_city];
}
$my_kw = trim($_POST[kw]);
if(!empty($my_kw))
{
$search_kw = $my_kw;
}
$url = "search.php?search_country=$search_country&search_state=$search_state&search_city=$search_city&search_kw=$search_kw";
header("location:$url");
exit();
}
require_once("includes.php");
//create the state menu
$StateMenu = "\n";
//create the city menu
$CityMenu = "\n";
//create the country menu
$CountryMenu = "\n";
$SelectStr = ptypes(0);
//create the PropertyType menu
$TypeMenu = str_replace("