# Contact form not send complete

**URL:** <https://forum.kirupa.com/t/contact-form-not-send-complete/271411>\
**Category:** Uncategorized\
**Created:** [September 22, 2008, 10:27pm UTC](https://forum.kirupa.com/t/contact-form-not-send-complete/271411 "2008-09-22T22:27:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LYA](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@LYA](https://forum.kirupa.com/u/LYA)\
**Post date:** [September 22, 2008, 10:27pm UTC](https://forum.kirupa.com/t/contact-form-not-send-complete/271411/1 "2008-09-22T22:27:15Z")

</div>

HI friends I am designer website in that site i used contact form. i look it form kirupa contact form tutorial. Form is wroking but i am not getting all data for mail.

**mailer.php:**  
\<?php  
if(isset($\_POST[‘submit’])) {  
$to = “[info@suminco-peru.com](mailto:info@suminco-peru.com)”;  
$subject = “Email enviado desde la pagina web”;  
$nombre\_field = $\_POST[‘nombre’];  
$apellido\_field = $\_POST[‘apellido’];  
$email = $\_POST[‘email’];  
$telf = $\_POST[‘telf’];  
$message = $\_POST[‘message’];  
$option = $\_POST[‘radio’];  
$dropdown = $\_POST[‘drop\_down’];  
foreach($\_POST[‘check’] as $value) {  
$check\_msg .= "Checked: $value  
";  
}

$body = "From: $nombre\_field  
Apellido: $apellido\_field  
E-Mail: $email\_field  
Telf: $telf\_field  
$check\_msg Option: $option  
Drop-Down: $dropdown  
Message:  
$message  
";  
echo “Tu email ha sido enviado de forma exitosa a $to!”;  
mail($to, $subject, $body);

} else {  
echo “blarg!”;  
}  
?\>

**contact.htm:**  
\<html\>  
\<head\>  
\<meta http-equiv=“Content-Language” content=“en-us”\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=windows-1252”\>  
\<title\>New Page 1\</title\>  
\</head\>  
\<body\>  
\<form method=“POST” action=“mailer.php”\>  
Nombre:  
\<input type=“text” name=“nombre” size=“19”\>\<br\>  
\<br\>  
Apellido:  
\<input type=“text” name=“apellido” size=“19”\>\<br\>  
\<br\>  
E-Mail:  
\<input type=“text” name=“email” size=“19”\>\<br\>  
\<br\>  
Telf:  
\<input type=“text” name=“telf” size=“19”\>\<br\>  
\<br\>

\<input type=“checkbox” name=“check[]” value=“blue\_color”\> Blue\<br\>  
\<input type=“checkbox” name=“check[]” value=“green\_color”\> Green\<br\>  
\<input type=“checkbox” name=“check[]” value=“orange\_color”\> Orange\<br\>  
\<br\>  
\<input type=“radio” value=“yes” name=“radio”\> YES\<br\>  
\<input type=“radio” value=“no” name=“radio”\> NO  
\<br\>  
\<br\>  
\<select size=“1” name=“drop\_down”\>  
\<option\>php\</option\>  
\<option\>xml\</option\>  
\<option\>asp\</option\>  
\<option\>jsp\</option\>  
\</select\>\<br\>  
\<br\>  
Message:\<br\>  
\<textarea rows=“9” name=“message” cols=“30”\>\</textarea\>\<br\>  
\<br\>  
\<input type=“submit” value=“Submit” name=“submit”\>  
\</form\>  
\</body\>  
\</html\>

Help! please, sorry but my english is more and less :cantlook:

but I just arrived this without field email and telf.

From: andres  
Apellido: navarrete  
E-Mail:  
Telf:  
Checked: green\_color  
Option: yes  
Drop-Down: php  
Message:  
prueba 7
