require_once("conn.php");
if(isset($_POST[s1_x]))
{
if(!empty($_POST[CategoryID]))
{
$c = $_POST[CategoryID];
}
if(!empty($_POST[ClassID]))
{
$classif = $_POST[ClassID];
}
if(!empty($_POST[search_country]))
{
$search_country = $_POST[search_country];
}
if(!empty($_POST[search_state]))
{
$search_state = $_POST[search_state];
}
if(!empty($_POST[search_zipcode]))
{
$search_zipcode = $_POST[search_zipcode];
}
if(!empty($_POST[search_region]))
{
$search_region = $_POST[search_region];
}
if(!empty($_POST[search_city]))
{
$search_city = $_POST[search_city];
}
$my_kw = trim($_POST[kw]);
if(!empty($my_kw))
{
$search_kw = $my_kw;
}
$my_phonenbr = trim($_POST[phonenbr]);
if(!empty($my_phonenbr))
{
$search_phonenbr = $my_phonenbr;
}
$my_staddress = trim($_POST[staddress]);
if(!empty($my_staddress))
{
$search_staddress = $my_staddress;
}
$url = "ussearch.php?c=$c&search_kw=$search_kw&search_zipcode=$search_zipcode&search_city=$search_city&classif=$classif&search_country=$search_country&search_state=$search_state&search_staddress=$search_staddress&search_phonenbr=$search_phonenbr&search_region=$search_region&state=NY";
header("location:$url");
exit();
}
require_once("usincludes.php");
//----------------------
// create the state menu
//----------------------
$StateMenu = "\n";
//---------------------
// create the city menu
//---------------------
$CityMenu = "\n";
mysql_free_result($r1);
//-------------------------
// create the Zip Code menu
//-------------------------
$ZipCodeMenu = "\n";
mysql_free_result($r1);
//-------------------------
// create the Region menu
//-------------------------
$RegionMenu = "\n";
mysql_free_result($r1);
//----------------------------------------
// create the Business Classification menu
//----------------------------------------
//
$SelectStr2 = ctypes(0);
$ClassifMenu = str_replace("