<?php

/*
Customer Name: $_POST[Name]
Address:$_POST[Address]
Postal Code: $_POST[PostalCode]
Email: $_POST[Email]
*/


// the page was posted and there are variables present
if(count($_POST)) {


# This section sends an email to you when 
# the form is used

// Your email address (for copies to be sent to you)
$youremail = "chemdryselect@hotmail.com"; 

// Your email subject text
$yoursubject = "Consumer Guide Sign Up"; 

// Your Business Name
$yourbiz = "From: chemdryselect@hotmail.com";

// The email text for copies sent to you
$youremailtext = "
The following person has Signed in to view you Consumer Guide:

Customer Name: $_POST[Name]
Email: $_POST[Email]
";

# This sends the email to you

@mail( $youremail, $yoursubject, $youremailtext, "From: $_POST[Email]");

# This section sends to the recipients

// Target page after successful submission
// Change thankyou.htm to suit

$thankyoupage = "thankyou.html"; 

// Change the subject text below to suit
$theirsubject = "Here is the Consumer Guide you requested";

// Change the text below for the email 
// Don't change any "$_POST[value]" items

$theirtext = "
Hi $_POST[Name],

Thank you for stopping by my Chem-Dry Select website.  I respect and appreciate 
the interest you’ve shown in Learning about the issue of maintaining a safe and 
healthy home.  

As a homeowner, you have enough to worry about, let alone the reliability and 
dependability of your service providers. Sadly, too many residents find out the 
hard way that not all carpet cleaners, or service companies for that matter, 
are created equal and there are some things you MUST know before inviting 
anyone into your home.
 
Go to http://www.select.chemdry.ca/consumer_guide.html to see our FR*EE REPORT 
called – A Consumers Guide To Carpet Cleaning. 
 
Being the owner of our local ChemDry Carpet Cleaning franchise, I believe we 
are uniquely capable of handling the cleaning needs for all your valuable 
carpeting, upholstery, area rugs and so forth.

ChemDry is the worldwide leader with more than 4,000 locations in 51 countries 
around the world.  Each year, ChemDry cleans more than ONE BILLION sq.ft. of 
carpet for millions of commercial customers world-wide.

We’re the largest because our Hot Carbonated Extraction cleaning method (HCE) 
is the best.  And that’s not just my opinion because granted I could tend to be 
a bit biased… nope that’s the opinion of leading manufactures, industry trade 
organizations and international health authorities.  

Our Natural process uses carbonation instead of soaps and detergents to lift 
dirt and soils for deep within your carpets and fabrics.  And because we use 
only minimal water, the carpets dry in about 1 to 2 hour… not 1 to 2 days like 
so many other methods.

I appreciate the opportunity to explain our service and to provide you with the 
attached information.  We would certainly love to provide professional cleaning 
for your facility. To schedule an appointment or for any question please don't 
hesitate to call our office at PPPP

Sincerely

Steve and Lisa Smith,
Chem-Dry Select
http://www.select.chemdry.ca

P.S. Again go to http://www.select.chemdry.ca/consumer_guide.html to see our FR*EE 
REPORT – A Consumers Guide To Carpet Cleaning.
";

# This emails the recommendation to the addresses submitted
@mail( $_POST[Email], $theirsubject, $theirtext, $yourbiz);

# After successful processing, the thank you page
header("Location: $thankyoupage");
exit;

}
