Buyers Form









Buyers Form – Bonnie Loya

























Buyers

BonnieLoya

Buying a home should be an exciting experience, not an ordeal. I work hard to provide my clients with the specialized skills and knowledge necesary for their successful purchase of real estate - residential or investment. I work throughout south and west Allegheny County, Washington County & surrounding areas.

Looking to buy a home? I can show you any home currently on the market.

;
$fullName = $_POST[‘full_name'];
$from = $_POST['email'];
$phone = $_POST[‘phone’];
$headers = "From:" . $from;
$result = mail($fullName,$phone,$email,$propertyType,$address,$priceRange,$bedrooms,$bathrooms,$preApproved,$parkingType,$buyingTimeline,$exploreZips,$dreamHomeWish);

if ($result) {
';
';

}else{
echo '';
echo '';
}
// define variables and set to empty values
$fullNameErr = $phoneErr = $emailErr = $propertyTypeErr = $addressErr = $price_rangeErr = $bedroomsErr = $bathroomsErr = $preApprovedErr = $parkingTypeErr = $buyingTimelineErr = $exploreZips = $dreamHomeWishErr =””;
$fullName = $phone = $email = $propertyType = $address = $priceRange = $bedrooms = $bathrooms = $preApproved = $parkingType = $buyingTimeline = $exploreZips = $dreamHomeWish = "";

if ($_SERVER["REQUEST_METHOD"] == "POST") {
  if (empty($_POST["full_name"])) {
    $fullNameErr= “Full Name is required";
  } else {
    $fullName = test_input($_POST["full_name"]);
  }

  if (empty($_POST[“phone”])) {
    $phoneErr = “Phone is required";
  } else {
    $phone = test_input($_POST[“phone”]);
  }

  if (empty($_POST[“email”])) {
    $emailErr = “Email is required";
  } else {
    $email = test_input($_POST[“email”]);
  }

 if (empty($_POST[“type-of-property”])) {
    $propertyTypeErr = “Property Type is required";
  } else {
    $type-of-property = test_input($_POST[“type-of-property”]);
  }

 if (empty($_POST[“property_address”])) {
    $addressErr = “Property Address is required";
  } else {
    $address = test_input($_POST[“property_address”]);
  }

 if (empty($_POST[“price_range”])) {
    $priceRangeErr = “Price Range is required";
  } else {
    $priceRange = test_input($_POST[“price_range”]);
}

if (empty($_POST[“ideal-number-of-bedrooms”])) {
    $bedroomsErr = “Ideal Number of Bedrooms is required";
  } else {
    $bedrooms = test_input($_POST[“ideal-number-of-bedrooms”]);
}

if (empty($_POST[“ideal-number-of-bathrooms”])) {
    $bathroomsErr = “Ideal Number of Bathrooms is required";
  } else {
    $bathrooms = test_input($_POST[“ideal-number-of-bathrooms”]);
}

if (empty($_POST[“are-you-preapproved-for-a-mortgage”])) {
    $preApprovedErr = “Pre-approval is required";
  } else {
    $preApproved = test_input($_POST[“are-you-preapproved-for-a-mortgage”]);
}

if (empty($_POST[“type-of-parking-you-need”])) {
    $parkingTypeErr = “Type of parking is required";
  } else {
    $parkingType = test_input($_POST[“type-of-parking-you-need”]);
}

if (empty($_POST[“timeline-for-buying”])) {
    $buyingTimelineErr = “Tinline for buying is required";
  } else {
    $buyingTimeline = test_input($_POST[“timeline-for-buying”]);
}

if (empty($_POST[“neighborhoods-or-zip-codes-youd-like-to-explore”])) {
    $exploreZipsErr = “Field is required";
  } else {
    $exploreZips = test_input($_POST[“neighborhoods-or-zip-codes-youd-like-to-explore”]);
}

if (empty($_POST[“what-do-you-want-the-most-in-your-dream-home”])) {
    $dreamHomeWishErr = “Field is required";
  } else {
    $dreamHomeWish = test_input($_POST[“what-do-you-want-the-most-in-your-dream-home”]);
}

?>