Submit ZIP code

if ( isset($_GET['statecode']) ) {
$statecode = $_GET['statecode'];
$getParams = "?statecode=".$statecode;
}
else {
if ( isset($_GET['zipcode']) ) {
$zipcode= $_GET['zipcode'];
$getParams = "?zipcode=".$zipcode;
}
else {
$getParams = "";
}
}
if ( isset($_GET['instype']) ) {
$instype= $_GET['instype'];
}
else {
$instype= "";
}
$bloginfo = get_bloginfo( "url", "raw" );
switch ($instype)
{
case "Auto":
$frameSource = $bloginfo."/auto-ins-results.html".$getParams;
break;
case "Motorcycle":
$frameSource = $bloginfo."/motorcycle-ins-results.html".$getParams;
break;
case "Business":
$frameSource = $bloginfo."/biz-ins-results.html".$getParams;
break;
case "Health":
$frameSource = $bloginfo."/health-ins-results.html".$getParams;
break;
case "Home":
$frameSource = $bloginfo."/home-ins-results.html".$getParams;
break;
case "Life":
$frameSource = $bloginfo."/life-ins-results.html".$getParams;
break;
default:
$frameSource = "";
}

Comments are closed.