Quick Search
$xstyle = $_POST['xstyle'];
$ptype = $_POST['type'];
$num_beds = $_POST['num_beds'];
$price_low = $_POST['price_low'];
$price_high = $_POST['price_high'];
$sales_rental = $_POST['sales_rental'];
$area = $_POST['area'];
$urlsalerent = $_GET['salerent'];
if ($sales_rental == “S”){
$saleorrent=”Sale”;
$fo=”,fo=ns”;
}
else if ($sales_rental == “L”)
{
$saleorrent=”Rent”;
$fo=”,fo=nr”;
}
else
{
$saleorrent=”";
$fo=”";
}
if ($urlsalerent == “sales”){
$saleorrent2=”Sale”;
$fo2=”,fo=ns”;
}
else if ($urlsalerent == “rentals”)
{
$saleorrent2=”Rent”;
$fo2=”,fo=nr”;
}
else
{
$saleorrent2=”";
$fo2=”";
}
if ($xstyle == “”){
$style=”,style=1″;
}
else
{
$style=”,style=4″;
}
if($num_beds == “”){
$bedscode = “”;
}
else
{
$bedscode = “,minbeds=$num_beds”;
}
if($ptype == “”){
$typecode = “”;
}
else
{
$typecode = “,type=$ptype”;
}
if($price_low == “”){
$lowcode = “”;
}
else
{
$lowcode = “,minprice=$price_low”;
}
if($price_high == “”){
$maxcode = “”;
}
else
{
$maxcode = “,maxprice=$price_high”;
}
if($area == “”){
$postcode = “”;
}
else
{
$postcode = “,area=$area”;
}
?>

