error_reporting(E_ERROR | E_WARNING | E_PARSE);
if($HTTP_POST_VARS['go'])
{
$err="";
$go=1;
if($HTTP_POST_VARS['fname']=="")
{
$go=0;
$err ="Please enter your first name
";
}
if($HTTP_POST_VARS['lname']=="")
{
$go=0;
$err .="Please enter your last name
";
}
if($HTTP_POST_VARS['email']=="")
{
$go=0;
$err .= "Please enter your email
";
}
if($go==1)
{
####Next set of lines is for the email
$sendto='christinac@homeprosystems.net, karen@homeprosystems.net, arick@homeprosystems.net,';
$sendfrom='InspectionRequest@homeprosystems.net';
$sendsubj='-- HomeProSystems -- Inspection request received';
$msg="";
$msg .= "The following Inspection Request was submitted.\n";
$msg .= $HTTP_POST_VARS['fname'] ." ". $HTTP_POST_VARS['lname'] ."\n";
$msg .= "Work #: " . $HTTP_POST_VARS['wphone'] ."\n";
$msg .= "Home #: " . $HTTP_POST_VARS['hphone'] ."\n";
$msg .= "Cell #: " . $HTTP_POST_VARS['cphone'] ."\n";
$msg .= "Email: " . $HTTP_POST_VARS['email'] ."\n";
$msg .= "Property Info:\n";
$msg .= $HTTP_POST_VARS['address'] ."\n";
$msg .= $HTTP_POST_VARS['city'] .", " . $HTTP_POST_VARS['state'] ."\n";
$msg .= $HTTP_POST_VARS['zip'] ."\n";
if($HTTP_POST_VARS['occ'])
{
if($HTTP_POST_VARS['occ']="Yes")
{$msg .= "Occupied\n";}
else
{$msg .= "Unoccupied\n";}
}
$msg .= "Built in " . $HTTP_POST_VARS['year'] ."\n";
$msg .= "Type: " . $HTTP_POST_VARS['tob']. "\n";
$msg .= "Square Feet: " . $HTTP_POST_VARS['sfp'] ."\n";
$msg .= "Inspection Type: " . $HTTP_POST_VARS['it1'].", ".$HTTP_POST_VARS['it2'].", ".$HTTP_POST_VARS['it3'].", ".$HTTP_POST_VARS['it4'].", ".$HTTP_POST_VARS['it5'].", ".$HTTP_POST_VARS['it6'] ."\n\n";
$msg .= "Preferred Date 1: " . $HTTP_POST_VARS['pd1d'] ." ". $HTTP_POST_VARS['pd1t1']." ". $HTTP_POST_VARS['pd1t2'] ."\n";
$msg .= "Preferred Date 2: " . $HTTP_POST_VARS['pd2d'] ." ". $HTTP_POST_VARS['pd2t1']." ". $HTTP_POST_VARS['pd2t2'] ."\n\n";
$msg .= "Buyer's Agent: " . $HTTP_POST_VARS['BuyAgentName'] ." from ".$HTTP_POST_VARS['BuyAgentOffice'] ."\n";
$msg .= "Seller's Agent: " . $HTTP_POST_VARS['SellAgentName'] ." from ".$HTTP_POST_VARS['SellAgentOffice'] ."\n\n";
$msg .= "Comments: " . $HTTP_POST_VARS['Comments'] ."\n";
mail($sendto,$sendsubj,$msg,"From:$sendfrom\n");
###set location to success page
header("location: index.php");
}
}
include("inc/clients_top.php");
?>
switch($page)
{
case "shoppers":
echo ' ';
break;
case "finding":
echo ' ';
break;
case "fees":
echo ' ';
break;
case "freebooklet":
echo ' ';
break;
case "contact":
echo ' ';
break;
case "inspectors":
echo ' ';
break;
case "about":
echo ' ';
break;
case "blank":
echo ' ';
break;
};
?> |
|
|
||
Get Free Booklet & Checklist ||
Schedule a Home Inspection ||
HomePro's Inspection Services ||
|
| HomePro © =date("Y") ?> - All Rights Reserved |