# Form help

**URL:** <https://forum.kirupa.com/t/form-help/286961>\
**Category:** Uncategorized\
**Created:** [April 23, 2009, 2:55pm UTC](https://forum.kirupa.com/t/form-help/286961 "2009-04-23T14:55:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricky281](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@ricky281](https://forum.kirupa.com/u/ricky281)\
**Post date:** [April 23, 2009, 2:55pm UTC](https://forum.kirupa.com/t/form-help/286961/1 "2009-04-23T14:55:05Z")

</div>

Hi all I had create a simple form to send to my email but after complete the form and click on submit I cant receivce it in my mail box. please help!!!

\<FORM action=/mailer.php method=post  
encType=multipart/form-data\>  
\<LABEL\>Name:\</LABEL\> (required) \<BR\>\<INPUT  
class=form-input-field size=40 name=form\_element0\> \<BR\>\<BR\>\<LABEL\>Email:\</LABEL\>  
(required) \<BR\>\<INPUT class=form-input-field size=40 name=form\_element1\>  
\<BR\>\<BR\>\<LABEL\>Your contact number:\</LABEL\> \<BR\>\<INPUT class=form-input-field  
size=40 name=form\_element2\> \<BR\>\<BR\>\<LABEL\>Subject:\</LABEL\> (required)  
\<BR\>\<INPUT class=form-input-field size=40 name=form\_element3\>  
\<BR\>\<BR\>\<LABEL\>Message:\</LABEL\> (required) \<BR\>\<TEXTAREA class=form-input-field name=form\_element4 rows=8 cols=38\>\</TEXTAREA\>  
\<BR\>\<BR\>\<INPUT class=form-input-button type=reset value=Reset name=resetButton\> \<INPUT class=form-input-button type=submit value=Submit name=submitButton\>  
\</FORM\>\</P\>

And this is my mailer

\<?php  
$ip = $\_POST[‘ip’];  
$httpref = $\_POST[‘httpref’];  
$httpagent = $\_POST[‘httpagent’];  
$visitor = $\_POST[‘visitor’];  
$visitormail = $\_POST[‘visitormail’];  
$notes = $\_POST[‘notes’];  
$attn = $\_POST[‘attn’];

if (eregi(‘http:’, $notes)) {  
die (“Do NOT try that! ! “);  
}  
if(!$visitormail == “” && (!strstr($visitormail,”@”) || !strstr($visitormail,".")))  
{  
echo "\<h2\>Use Back - Enter valid e-mail\</h2\>  
";  
$badinput = "\<h2\>Feedback was NOT submitted\</h2\>  
";  
echo $badinput;  
die ("Go back! ! ");  
}  
if(empty($visitor) || empty($visitormail) || empty($notes )) {  
echo "\<h2\>Use Back - fill in all fields\</h2\>  
";  
die ("Use back! ! ");  
}  
$todayis = date(“l, F j, Y, g:i a”) ;  
$attn = $attn ;  
$subject = $attn;  
$notes = stripcslashes($notes);  
$message = " $todayis [EST]

Attention: $attn

Message: $notes

From: $visitor ($visitormail)

Additional Info : IP = $ip

Browser Info: $httpagent

Referral : $httpref

";  
$from = "From: $visitormail  
";

mail(" [ricky281@gmail.com](mailto:ricky281@gmail.com) " , $subject, $message, $from);  
?\>  
\<p align=“center”\>  
Date: \<?php echo $todayis ?\>  
\<br /\>  
Thank You : \<?php echo $visitor ?\> ( \<?php echo $visitormail ?\> )  
\<br /\>

\<br /\>  
Message:\<br /\>  
\<?php $notesout = str\_replace("\r", “\<br/\>”, $notes);  
echo $notesout; ?\>  
\<br /\>  
\<?php echo $ip ?\>  
\<br /\>\<br /\>  
\<a href="/index.html"\> Next Page \</a\>\</p\>  
\</body\>  
\</html\>
