Greg and Julia Weichbrodt, 937 Reinli Street, Suite 28, Austin Texas 78751
TEL: 512-490-6633 | FAX: 512-490-6450
"; //For debugging //extract($_POST); // Setup POSTed values back into their separate variables // print_r($_POST); // For debugging // echo "
"; //For debugging $validate = $validate=="yes"; if ($validate) { // Check to see if contact fields are filled out $BathroomsChk = !empty($_POST['Bathrooms']) && is_numeric($_POST['Bathrooms']); $BedroomsChk = !empty($_POST['Bedrooms']) && is_numeric($_POST['Bathrooms']); $OtherRoomsChk = !empty($_POST['OtherRooms']) && is_numeric($_POST['Bathrooms']); $PetsChk = !empty($_POST['Pets']); $FrequencyChk = !empty($_POST['Frequency']); $FootageChk = !empty($_POST['Footage']); $OccupantsChk = !empty($_POST['Occupants']) && is_numeric($_POST['Bathrooms']); $EmailChk = (!empty($_POST['Email'])) && (eregi('^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$', $_POST['Email'])); $emailform = (eregi('^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$', $_POST['Email'])); //$emailextract = $_POST['Email']; //echo "$emailextract, eregi = " . ($emailform ? "true" : "false") . "
"; $FirstNameChk = !empty($_POST['FirstName']); $LastNameChk = !empty($_POST['LastName']); $PhoneChk = !empty($_POST['Phone']); $ReferralChk = $_POST['Referral'] != "SelectOne"; if ($_POST['Referral'] == "Other") { if (empty($_POST['OtherReferralSource'])) { $OtherReferralChk = false; } else { $OtherReferralChk = true; } } else { $OtherReferralChk = true; } //echo "Other referral check is: " . ($OtherReferralChk ? "true" : "false") . "
"; // Check for the captcha field //include_once $_SERVER['DOCUMENT_ROOT'] . '/securimage/securimage.php'; include_once '/home/maids/public_html/securimage/securimage.php'; $securimage = new Securimage(); $captchaChk = !empty($_POST['captcha_code']); if ($securimage->check($_POST['captcha_code']) == false) { // then code was incorrect $captchaChk = 0; } /* If validated, send email to appropriate list, invoke loader and print thank you page otherwise redisplay form with errors */ $validated = ($validate && $BathroomsChk && $BedroomsChk && $OtherRoomsChk && $PetsChk && $FrequencyChk && $FootageChk && $OccupantsChk && $EmailChk && $FirstNameChk && $LastNameChk && $ReferralChk && $captchaChk && $OtherReferralChk); // echo "Validated = $validated, EmailChk = $EmailChk"; // debug if ($validated) { //echo "

Form is validated!

"; // Calculate number of man-minutes required // echo "Starting Calculations
"; // For debugging $manminutes = 0; // echo "Initialization done: manminutes = $manminutes
"; // For debugging switch ($Footage) { case 'Under 800': { $BathMinutes = 30; $OtherRoomMinutes = 15; $BigRoomMinutes = 15; break; } case '800-1,000': { $BathMinutes = 30; $OtherRoomMinutes = 20; $BigRoomMinutes = 20; break; } case '1,001-1,250': { $BathMinutes = 30; $OtherRoomMinutes = 20; $BigRoomMinutes = 20; break; } case '1,251-1,500': { $BathMinutes = 30; $OtherRoomMinutes = 20; $BigRoomMinutes = 20; break; } case '1,501-2,000': { $BathMinutes = 30; $OtherRoomMinutes = 25; $BigRoomMinutes = 25; break; } case '2,001-2,500': { $BathMinutes = 30; $OtherRoomMinutes = 25; $BigRoomMinutes = 25; break; } case '2,501-3,000': { $BathMinutes = 30; $OtherRoomMinutes = 30; $BigRoomMinutes = 30; break; } case '3,001-4,000': { $BathMinutes = 35; $OtherRoomMinutes = 35; $BigRoomMinutes = 35; break; } // For 4000+, calculation does not use this value, so no-op } $manminutes += $Bathrooms * $BathMinutes; // echo "Bathrooms done: manminutes = $manminutes, Bathrooms = $Bathrooms, BathMinutes = $BathMinutes
"; // For debugging $manminutes += $Bedrooms * $BedMinutes; // echo "Bathrooms done: manminutes = $manminutes, Bedrooms = $Bedrooms, BedMinutes = $BedMinutes
"; // For debugging // $manminutes += (($OtherRooms - 1) * $OtherRoomMinutes) + $OtherRoomAdder; $manminutes += ($OtherRooms - 1) * $OtherRoomMinutes + $OtherRoomAdder; // echo "Other rooms done: manminutes = $manminutes, OtherRooms = $OtherRooms, OtherRoomMinutes = $OtherRoomMinutes, OtherRoomAdder = $OtherRoomAdder
"; // echo "Basic rooms done: manminutes = $manminutes
"; // For debugging switch ($Pets) { case '0': { $manminutes += $PetAdder0; break; } case '1-2 pets': { $manminutes += $PetAdder12; break; } case '3-4 pets': { $manminutes += $PetAdder34; break; } case '5+ pets': { $manminutes += $PetAdder5; break; } } $TtlRooms = $Bathrooms + $Bedrooms + $OtherRooms; // echo "Pet adds done: manminutes = $manminutes, TtlRooms = $TtlRooms
"; switch ($Footage) { case 'Under 800': { $manminutes += ($TtlRooms < 5) ? (5-$TtlRooms)*$BigRoomMinutes : ($TtlRooms-5)*$SmallRoomMinutes; break; } case '800-1,000': { $manminutes += ($TtlRooms < 6) ? (6-$TtlRooms)*$BigRoomMinutes : ($TtlRooms-6)*$SmallRoomMinutes; break; } case '1,001-1,250': { $manminutes += ($TtlRooms < 7) ? (7-$TtlRooms)*$BigRoomMinutes : ($TtlRooms-7)*$SmallRoomMinutes; break; } case '1,251-1,500': { $manminutes += ($TtlRooms < 8) ? (8-$TtlRooms)*$BigRoomMinutes : ($TtlRooms-8)*$SmallRoomMinutes; break; } case '1,501-2,000': { $manminutes += ($TtlRooms < 9) ? (9-$TtlRooms)*$BigRoomMinutes : ($TtlRooms-9)*$SmallRoomMinutes; break; } case '2,001-2,500': { $manminutes += ($TtlRooms < 10) ? (10-$TtlRooms)*$BigRoomMinutes : ($TtlRooms-10)*$SmallRoomMinutes; break; } case '2,501-3,000': { $manminutes += ($TtlRooms < 11) ? (11-$TtlRooms)*$BigRoomMinutes : ($TtlRooms-11)*$SmallRoomMinutes; break; } case '3,001-4,000': { $manminutes += ($TtlRooms < 12) ? (12-$TtlRooms)*$BigRoomMinutes : ($TtlRooms-12)*$SmallRoomMinutes; break; } // For 4000+, calculation does not use this value, so no-op } // echo "Footage done: manminutes = $manminutes
"; // Extra time for more people than bedrooms-1 $manminutes += (($Occupants-1 > $Bedrooms) ? ($Occupants-$Bedrooms-1)*$ExtraPersonMinutes : 0); // echo "Extra Occupants done: manminutes = $manminutes
"; // Always capture biweekly to show as an option $manminutesbiweekly = $manminutes + $manminutes * $BiWeeklyMinutes; switch ($Frequency) { case 'Weekly': { $manminutes += $manminutes * $WeeklyMinutes; break; } case 'Biweekly': { $manminutes += $manminutes * $BiWeeklyMinutes; break; } // case 'Every 3 weeks': { $manminutes += $manminutes * $TriWeeklyMinutes; break; } case 'Monthly': { $manminutes += $manminutes * $QuadWeeklyMinutes; break; } } // echo "Frequency done: manminutes = $manminutes
"; // Calculate man-hour range $manminutes = max($manminutes, $MinMinutes); // Force a minimum charge //echo "Man Minutes: $manminutes
"; $manminutesbiweekly = max($manminutesbiweekly, $MinMinutes); // Force a minimum charge //echo "Man Minutes Biweekly: $manminutesbiweekly
"; // echo "Force Minimum: manminutes = $manminutes
"; // New calculation for manhours 2013-01-23 // we now round to the nearest 15 minute interval meaning the manhours start at a minimum of 3.0 for a team of three // and then go to 3.75, then 4.5, then 5.25, then 6.0 and so on // we no longer round up and add $0.99 // Nevermind, he's moved the goal posts again // Disregard comments above 2013-01-28 // He wants all minutes divided by 60 to get hours // Then round up the hours to the following intervals: // 3.0, 3.75, 4.25, 5.0, 5.75, 6.5... 15.0 // See function RoundedManHours at beginning of PHP code switch ($Frequency) { case 'One time': { //echo "frequency one-time:

"; //$low_manhours = round($manminutes/60*$LowFactor,1); //$low_manhours = (ceil(($manminutes * $LowFactor)/15)) / 4; //echo "man minutes before low & high factor mulitplication and RoundedManHours function: $manminutes

"; $low_manhours = RoundedManHours($manminutes * $LowFactor); //echo "low man hours: $low_manhours
"; //$high_manhours = round($manminutes/60*$HighFactor,1); // echo "manhours = $low_manhours to $high_manhours
"; // For debugging $high_manhours = RoundedManHours($manminutes * $HighFactor); //echo "high man house: $high_manhours
"; } default: { // $manhours = (ceil($manminutes/15)) / 4; $manhours = RoundedManHours($manminutes); //echo "man hours: $manhours
"; // $manhoursbiweekly = (ceil($manminutesbiweekly/15)) / 4; $manhoursbiweekly = RoundedManHours($manminutesbiweekly); //echo "man hours biweekly: $manhoursbiweekly
"; //$manhoursbiweekly = round($manminutesbiweekly/60,2); // echo "manhours = $manhours
"; // For debugging break; } } // Start the email message body and results page copy. $message = "Dear $FirstName $LastName,\n\n"; $page = "Dear $FirstName $LastName,

"; $message .= "Thank you for your interest in our services. This email is in response to "; $page .= "Thank you for your interest in our services. Here are the results from "; $message .= "your form inputs at the Austin All Maids website and contains your estimate.\n\n"; $page .= "your form inputs at the Austin All Maids website.

"; // Calculate the actual estimate and the biweekly alternative $estimatebiweekly = $HourlyRate * $manhoursbiweekly; $estimatebiweekly = round($estimatebiweekly, 2); $estimatebiweekly = number_format($estimatebiweekly, 2, '.', ''); if ($Frequency != 'One time' and $Footage != "Over 4000") { // check for Move In or Move Out and tack on surcharge if so if ($MoveInOut == "Yes") { $manminutes = $manminutes * 1.15; //echo "move in out equals yes. manminutes is now: $manminutes
"; } $manhours = RoundedManHours($manminutes); $estimate = $HourlyRate * $manhours; $estimate = round($estimate, 2); $estimate = number_format($estimate, 2, '.', ''); //echo "estimate: $estimate
"; // $onetime_manhours = (ceil(($manminutes * $HighFactor)/15)) / 4; $onetime_manhours = RoundedManHours($manminutes * $HighFactor); //echo "onetime man hours: $onetime_manhours
"; $onetime_est = $onetime_manhours * $HourlyRate; $onetime_est = round($onetime_est, 2); $onetime_est = number_format($onetime_est, 2, '.', ''); //echo "one time estimate: $onetime_est
"; $message .= "Our cleaning estimate is: \$$estimate (plus tax) for cleaning services on a $Frequency basis. "; $page .= "Our cleaning estimate is: \$$estimate (plus tax) for cleaning services on a $Frequency basis. "; $message .= "The actual fee is based on the time the cleaning takes. In order to bring your home up to our cleaning standards, your first cleaning likely will take longer than subsequent cleans on a $Frequency basis. Our estimate for the first clean is a range between: \$$estimate and \$$onetime_est (plus tax). We usually send "; $page .= "The actual fee is based on the time the cleaning takes. In order to bring your home up to our cleaning standards, your first cleaning likely will take longer than subsequent cleans on a $Frequency basis. Our estimate for the first clean is a range between: \$$estimate and \$$onetime_est (plus tax). We usually send "; $message.="a team of three crew members to clean your home. Call us at 512-490-6633 to schedule your cleaning. We look forward to hearing from you. Thanks for considering Austin All Maids."; $page .= "a team of three crew members to clean your home. Call us at 512-490-6633 to schedule your cleaning. We look forward to hearing from you. Thanks for considering Austin All Maids."; if ($Frequency == "Monthly" and $estimatebiweekly != $estimate) { // Offer biweekly alternative $message .= "\n\nOur estimate for biweekly cleaning of this space is \$$estimatebiweekly or approximately 20% or so less than a monthly cleaning. Consider scheduling biweekly cleaning and see (and smell) the benefits. "; $page .= "

Our estimate for biweekly cleaning of this space is \$$estimatebiweekly or approximately 20% or so less than a monthly cleaning. Consider scheduling biweekly cleaning and see (and smell) the benefits. "; } } else if ($Footage == "Over 4000") { // No estimate, quote hourly rate $message .="Due to the many variables that effect the length of time it takes to"; $page .= "Due to the many variables that effect the length of time it takes to"; $message .=" provide a cleaning for the home of your size, we are unable to provide"; $page .= " provide a cleaning for the home of your size, we are unable to provide"; $message .=" an accurate estimate without talking further. We usually send a team of three crew"; $page .= " an accurate estimate without talking further. We usually send a team of three crew"; $message .=" members to clean your home and charge a rate of $27 an hour per person. Please call us to further discuss"; $page .= " members to clean your home and charge a rate of $27 an hour per person. Please call us to further discuss"; $message .=" your needs and we will try to provide a more precise estimate. Thanks for your interest and we look forward to speaking to you."; $page .= " your needs and we will try to provide a more precise estimate. Thanks for your interest and we look forward to speaking to you."; } else if ($Frequency == 'One time') { // Provide a range for one time cleanings // check for Move In or Move Out and tack on surcharge if so if ($MoveInOut == "Yes") { $manminutes = $manminutes * 1.15; $low_manhours = RoundedManHours($manminutes * $LowFactor); $high_manhours = RoundedManHours($manminutes * $HighFactor); //echo "move in out equals yes. low_manhours is now: $low_manhours
high manhours is: $high_manhours
"; } $low_est = $low_manhours * $HourlyRate; $low_est = round($low_est, 2); $low_est = number_format($low_est, 2, '.', ''); $high_est = $high_manhours * $HourlyRate; $high_est = round($high_est, 2); $high_est = number_format($high_est, 2, '.', ''); $message .= "Due to the many variables that effect the length of time it takes to "; $page .= "Due to the many variables that effect the length of time it takes to "; $message .= "provide a one-time cleaning, we can offer a fee range based on our "; $page .= "provide a one-time cleaning, we can offer a fee range based on our "; $message .= "experience with cleaning a space according to your parameters. "; $page .= "experience with cleaning a space according to your parameters. "; $message .= "Our estimate is between \$$low_est and \$$high_est (plus tax).\n\n "; $page .= "Our estimate is between \$$low_est and \$$high_est (plus tax).

"; $message .= "Our estimate for biweekly cleaning of this space is \$$estimatebiweekly or approximately 25% or so less than a one-time cleaning. Consider scheduling regular cleaning and see (and smell) the benefits. "; if ($estimatebiweekly != $estimate) { // Offer biweekly alternative $page .= "Our estimate for biweekly cleaning of this space is \$$estimatebiweekly or approximately 25% or so less than a one-time cleaning. Consider scheduling regular cleaning and see (and smell) the benefits. ";} $message .= "The actual fee is based on the time the cleaning takes. We usually send a "; $page .= "The actual fee is based on the time the cleaning takes. We usually send a "; $message.="team of three crew members to clean your home. Call us at 512-490-6633 to schedule your cleaning. We look forward to hearing from you. Thanks for considering Austin All Maids."; $page .= "team of three crew members to clean your home. Call us at 512-490-6633 to schedule your cleaning. We look forward to hearing from you. Thanks for considering Austin All Maids."; } $message .= "\n\nWe calculated this estimate from these inputs: \n"; $page .= "

We calculated this estimate from these inputs:
"; $message .= "Number of bathrooms: $Bathrooms \n"; $page .= "Number of bathrooms: $Bathrooms
"; $message .= "Number of bedrooms: $Bedrooms \n"; $page .= "Number of bedrooms: $Bedrooms
"; $message .= "Number of other rooms: $OtherRooms \n"; $page .= "Number of other rooms: $OtherRooms
"; $message .= "Number of indoor pets: $Pets \n"; $page .= "Number of indoor pets: $Pets
"; $message .= "Frequency of cleaning: $Frequency \n"; $page .= "Frequency of cleaning: $Frequency
"; $message .= "Square footage: $Footage \n"; $page .= "Square footage: $Footage
"; $message .= "Number of occupants: $Occupants \n"; $page .= "Number of occupants: $Occupants
"; $message .= "Email address: $Email \n"; $page .= "Email address: $Email
"; $message .= "First Name: $FirstName \n"; $page .= "First Name: $FirstName
"; $message .= "Last Name: $LastName \n"; $page .= "Last Name: $LastName
"; $message .= "Phone number: $Phone \n"; $page .= "Phone number: $Phone
"; $message .= "Referral source: $Referral \n"; $page .= "Referral source: $Referral
"; $message .= "Other referral source: $OtherReferralSource \n"; $page .= "Other referral source: $OtherReferralSource
"; $message .= "\nPlease contact us at 512-490-6633 to schedule your cleaning.\n"; $page .= "
Please contact us at 512-490-6633 to schedule your cleaning.
"; $message .= "\nThank you and we look forward to hearing from you,\n"; $page .= "
Thank you and we look forward to hearing from you,
"; $message .= "Greg and Julia Weichbrodt, Owners\n\n"; $page .= "Greg and Julia Weichbrodt, Owners

"; $message .= "NOTE: This is an estimated fee. The actual fee is based on time spent in your home and circumstances particular to your home may cause the actual fee to be higher or lower than estimated."; $page .= "NOTE: This is an estimated fee. The actual fee is based on time spent in your home and circumstances particular to your home may cause the actual fee to be higher or lower than estimated."; // Send the email $to = $_POST["Email"]; $subject = "Cleaning Estimate from Austin All Maids"; $headers = "From: noreply@Austin-All-Maids.com\r\n" . "Bcc: $adminEmail\r\n"; mail ($to, $subject, $message, $headers); // echo "
$message
"; /* echo "

Temporary Debugging code

"; echo "to: $to
"; echo "re: $subject
"; echo "hd: $headers
"; echo "$message
";*/ /* BEGIN - NEW CODE FOR LATEST CONSTANT CONTACT API */ /* 2011-04-16 Craig Whisenhunt */ include('constant_contact.php'); $api = new constant_contact('austinallmaids', 'Sty1mie3', 'c6e8b0ab-7d14-4760-b07f-fd2e8186c0af', false); $data['OptInSource'] = "ACTION_BY_CONTACT"; $data['EmailAddress'] = $_POST["Email"]; $data['FirstName'] = $_POST["FirstName"]; $data['LastName'] = $_POST["LastName"]; $data['HomePhone'] = $_POST["Phone"]; $data['CustomField1'] = $_POST["Footage"]; if ($_POST['Referral'] == "Other") { $ReferralSource = $Referral . " - " . $OtherReferralSource; } else { $ReferralSource = $Referral; } $data['CustomField2'] = $ReferralSource; $lists[0] = 2; $return = $api->add_contact($data, $lists); if ($return == false) { //echo "fail"; } else { //echo "great success!"; } /* END - NEW CODE FOR LATEST CONSTANT CONTACT API */ // echo "

Thank you for your request. You will receive an email shortly with your estimate.

"; echo "

Thank you for your interest!

"; //echo $page; echo "\"AustinAn email has been sent to your inbox with an estimate of the price to clean your home based on the parameters you entered. Please call if you would like to speak to us about specific cleaning details so we can provide a more tailored price quote.

Thanks again and we look forward to taking good care of you.

Greg and Julia Weichbrodt
Austin All Maids
512-490-6633

"; } /*else if ($validate) { echo "

1 There are missing fields that are required. Please correct and resubmit.

"; }*/ } /*else*/ if ($validated != 1) // because new display or invalid entries, redisplay with errors if necessary { if ($validate) { echo "

There are missing or incorrect fields that are required. Please correct and resubmit.

"; } ?>

Austin All Maids – the #1 Choice for Maid & House Cleaning Services in the Greater Austin Area

You can rely on Austin All Maids for professional maid service, house and office cleaning. Our professionally trained staff provides reliable and comprehensive house keeping services.

Try our free Price Estimator for an instant quote right now! Or, contact us today at 512-490-6633 for a complimentary cost estimate.

Request a Free Estimate for House Cleaning or Maid Services

* Number of bathrooms: "; ?> Please tell us how many bathrooms you have. (For example 2 or 2.5)"; ?>
* Number of bedrooms: "; ?> Please tell us how many bedrooms you have. (For example 3)"; ?>
* Number of other rooms: "; ?> Please tell us how many other rooms you have. (For example 3)"; ?>
* Number of indoor pets:
* Frequency of cleaning:
Move-in or Move-out?
* Square footage:
* Number of occupants: "; ?> Please tell us how many people live at this address. (For example 3)"; ?>
* Email address: "; ?> Please tell us your email address so we can respond."; ?>
* First Name: "; ?> Please tell us your first name."; ?>
* Last Name: "; ?> Please tell us your last name."; ?>
Phone number: "; ?>
* Referral source: How did you find us?"; ?>
Other referral source: "; ?> How did you find us?"; ?>
* Enter the security code in this box:   CAPTCHA Image Please enter the correct code."; ?> Reload Image
 
***Your cleaning estimate will be sent in a separate email.
If you do not see it in your inbox please check your junk/spam folder.

* Required fields

 

This is an estimated fee. The actual fee is based on time spent in your home and circumstances particular to your home may cause the actual fee to be higher or lower than estimated.

Link to this page. Copyright © 2008-2011 Austin All Maids. Contact us at 512-490-6633. All Rights Reserved. Maintained by Predictable Networks Website Hosting.