0
<?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";

?>
4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by jbennet
-1

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: n/a

0

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: edited by jbennet. CODE TAGS!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.