# Help I am the new kid Please

**URL:** <https://forum.kirupa.com/t/help-i-am-the-new-kid-please/325117>\
**Category:** programming\
**Created:** [September 27, 2011, 12:26pm UTC](https://forum.kirupa.com/t/help-i-am-the-new-kid-please/325117 "2011-09-27T12:26:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Newel](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@Newel](https://forum.kirupa.com/u/Newel)\
**Post date:** [September 27, 2011, 12:26pm UTC](https://forum.kirupa.com/t/help-i-am-the-new-kid-please/325117/1 "2011-09-27T12:26:59Z")

</div>

[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]](http://www.workmanfence.com/)

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]
