[INDENT][INDENT]Hello, I am new to this forum. I dont see a place to start a thread or ask for help. I am going to post me issue here and hope… that you kind people can direct me to the correct place.
I designed a site and made the contact form, but now cant get the form to email the customer, any help would be greatly appreciated. Newel
here is the link [COLOR=#003366]www.workmanfence.com[/COLOR]
Here is the code:
Form code
<form action=“contact.php” method=“post” id=“contactform”>
<ol>
<li>
<label for=“name”> Name</label>
<input id=“name” name=“name” class=“text” />
</li>
<li>
<label for=“email”>Your email</label>
<input id=“email” name=“email” class=“text” />
</li>
<li>
<label for=“company”>Street Adress</label>
<input id=“company” name=“company” class=“text” />
</li>
<li>
<label for=“company”>City and Zip</label>
<input id=“company” name=“company” class=“text” />
</li>
<li>
<label for=“company”> Length of Fence</label>
<input id=“company” name=“company” class=“text” />
</li>
<li>
<label for=“company”> how did you Hear about us</label>
<input id=“company” name=“company” class=“text” />
</li>
<li>
<label for=“company”>Number of Gates </label>
<input id=“company” name=“company” class=“text” />
</li>
<li>
<label for=“company”>Old Fence removal<br />
</label>
<input id=“company2” name=“company2” class=“text” />
</li>
<li>
<label for=“message”>Message</label>
<textarea id=“message” name=“message” rows=“6” cols=“50”></textarea>
</li>
<li class=“buttons”>
<input type=“image” name=“imageField” id=“imageField” src=“images/send.gif” class=“send” />
<div class=“clr”></div>
</li>
</ol>
</form>
</div>
<div class=“clr”></div>
</div>
</div>
</div>
Email code
<?php
if ($_POST[“email”]<>’’) {
$ToEmail = ‘arnie@workmanfence.com’;
$EmailSubject = 'Site contact form ';
$mailheader = "From: “.$_POST[“email”].”
";
$mailheader .= "Reply-To: “.$_POST[“email”].”
";
$mailheader .= "Content-type: text/html; charset=iso-8859-1
";
$MESSAGE_BODY = “Name: “.$_POST[“name”].”<br>”;
$MESSAGE_BODY .= “Your Email: “.$_POST[“Your email”].”<br>”;
$MESSAGE_BODY .= “Street Address: “.$_POST[“Street Address”].”<br>”;
$MESSAGE_BODY .= “City and Zip: “.$_POST[“City and Zip”].”<br>”;
$MESSAGE_BODY .= “Lenght of Fence: “.$_POST[“Lenght of Fence”].”<br>”;
$MESSAGE_BODY .= “How Did You Hear About Us: “.$_POST[“How Did You Hear About Us”].”<br>”;
$MESSAGE_BODY .= “Number Of Gates: “.$_POST[“Number Of Gates”].”<br>”;
$MESSAGE_BODY .= “Old Fence Removal: “.$_POST[“Old Fence Removal”].”<br>”;
$MESSAGE_BODY .= “Comment: “.nl2br($_POST[“comment”]).”<br>”;
mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die (“Failure”);
?>
Your message was sent
<?php
} else {
?> [/INDENT]
[/INDENT]