<?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
kireol 10 Posting Whiz
You had a - instead of a =
<?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";
?>
Edited by kireol because: n/a
charles07 0 Newbie Poster
Change your code to this, i have commented your mail funcion on line 77, uncomment it
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<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>
<body>
<?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
echo "$theResults";
EOD;
?>
<div>
<div align="left">Thank you for your question or concern! Your email will be answered very soon!</div>
</div>
</body>
</html>
Edited by jbennet because: edited by jbennet. CODE TAGS!
jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster
Please, use CODE tags.
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.