<?php
/*subject and estimate*/
$emailSubject = 'Estimate scripting!' ;
$webMaster = 'kindra@kindrasdesigns.com';
/*Gathering Data Varibles*/
$nameField = $_POST['name'];
$addressField = $_POST['address'];
$citystzipField = $_POST['citystzip'];
$phoneField = $_POST['phone'];
$emailField = $_POST['email'];
$cleantimeField = $_POST['cleantime'];
$cleantypeField = $_POST['cleantype'];
$dwelltypeField = $_POST['dwelltype'];
$sqfootField = $_POST['sqfoot'];
$occupField = $_POST['occup'];
$insidepetsField = $_POST['insidepets'];
$pettypeField = $_POST['pettype'];
$floortypeField = $_POST['floortype'];
$livingareaField = $_POST['livingarea'];
$bedroomsField = $_POST['bedrooms'];
$fullbathsField = $_POST['fullbaths'];
$powderrmsField = $_POST['powderrms'];
$body = <<<EOD
<br><hr><br>
Name: $nameField <br>
Adress: $addressField <br>
citystzip: $citystzipField <br>
Phone: $phoneField <br>
Email: $emailField <br>
Cleantime: $cleantimeField <br>
Cleantype: $cleantypeField <br>
Dwelltype: $dwelltypeField <br>
Sqfoot: $sqfootField <br>
Occup: $occupField <br>
Insidepet: $insidepetsField <br>
Pettype: $pettypeField <br>
Floortype: $floortypeField <br>
Livingarea: $livingareaField <br>
Bedrooms: $bedroomsField <br>
Fullbaths $fullbathsField <br>
Powderrms: $powderrmsField <br>
EOD;
$headers = "from: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered as HTML */
$theResults - <<<EOD
<html>
<head>
<title>thank_you</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #f1f1f1;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
}
-->
</style>
</head>
<div>
<div align="left">Thank you for your question or concern! Your email will be answered very soon!</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
kindrasdesigns
0
Newbie Poster
Recommended Answers
Jump to PostPlease, use CODE tags.
All 3 Replies
kireol
10
Posting Whiz
charles07
0
Newbie Poster
jbennet
1,618
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.