|
and this is the PHP code:
<?php
/* Subject and Email Variables */
$emailSubject = 'The Ultimate Handymen Website!';
$webMaster = 'service@theultimatehandymen.com';
/* Gathering Data Variables */
$nameField = $_GET['name'];
$streetField = $_GET['street'];
$cityField = $_GET['city'];
$zipcodeField = $_GET['zipcode'];
$phoneField = $_GET['phone'];
$emailField = $_GET['email'];
$descriptionField = $_GET['description'];
$timeField = $_GET['time'];
$availabilityField = $_GET['availability'];
$preferenceField = $_GET['preference'];
$hearField = $_GET['hear'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Street: $street <br>
City: $city <br>
Zipcode: $zip <br>
Phone Number: $phone <br>
Email: $email <br>
Description: $description <br>
Time: $time <br>
Availability: $availability <br>
Preference: $preference <br>
Hear: $hear <br>
EOD;
$headers = "From: $name\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>The Ultimate Handymen-Homepage</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 interest! Your email will be answered very soon!</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
__________________
SR Design Concepts
Steve Rosenthal
Please login or register to view this content. Registration is FREE
|