# Help with check box!

**URL:** <https://forum.kirupa.com/t/help-with-check-box/198611>\
**Category:** Uncategorized\
**Created:** [August 26, 2006, 5:41pm UTC](https://forum.kirupa.com/t/help-with-check-box/198611 "2006-08-26T17:41:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![makita](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@makita](https://forum.kirupa.com/u/makita)\
**Post date:** [August 26, 2006, 5:41pm UTC](https://forum.kirupa.com/t/help-with-check-box/198611/1 "2006-08-26T17:41:24Z")

</div>

Hi!!! I’m new in this forum…

I’m doing a form in flash thas has some input text areas thas pass variables to a php and then send it by mail … up to here is everithing Ok, but now I have to introduce some check boxes, but I don’t now how to pass the information to the PHP and then to the mail… I have read lots of tutorials, but nothing works!!! ;(  
 ![](http://www.kirupa.com/forum/images/smiles/icon_crap.gif)  
I put the form at this link for you to see it (it’s really simple!)  
[http://www.yda.cl/prueba/formulario3.html](http://www.yda.cl/prueba/formulario3.html)

In the “send” button in flash I have this code:  
on (release) {  
if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {  
EmailStatus = “Por favor ingrese un email válido”;  
} else if (!FirstName.length) {  
EmailStatus = “Por favor ingrese su nombre”;  
} else if (!ToComments.length) {  
EmailStatus = “Por favor ingrese su mensaje”;  
} else {  
loadVariablesNum(“enviaok.php”, “0”, “POST”);  
EmailStatus = “Su mensaje ha sido enviado exitosamente”;  
}  
}

And in the PHP this one:

\<?php  
// Envía mail

$myemp = $HTTP\_POST\_VARS[‘Emp’];  
$myrut = $HTTP\_POST\_VARS[‘rut’];  
$myname = $HTTP\_POST\_VARS[‘FirstName’];  
$myemail = $HTTP\_POST\_VARS[‘Email’];  
$myfono = $HTTP\_POST\_VARS[‘Tel’];

$contactname = “Desde Sitio Web”;  
$contactemail = "msotolivares@gmail.com";

$message = $HTTP\_POST\_VARS[‘ToComments’];  
$subject = “Cotización desde el Sitio Web”;  
$headers = “From: “.$myname.” \<”.$myemail."\>";

if (getenv(HTTP\_CLIENT\_IP))  
{ $ip = getenv(HTTP\_CLIENT\_IP); }  
else  
{ if (getenv(HTTP\_X\_FORWARDED\_FOR))  
{ $ip = getenv(HTTP\_X\_FORWARDED\_FOR); }  
else  
{ $ip = getenv(REMOTE\_ADDR); }  
}

$nomhost=gethostbyaddr($ip);  
$hoyfh = date(“Y-m-d H:i:s”);  
$mensaje = “El mensaje fue enviado desde el Host: “.$nomhost.” (”.$ip.")"." el " .$hoyfh."

Nombre del contacto: “.$myname.”

Empresa: “.$myemp.”  
Email: “.$myemail.”

Teléfono: “.$myfono.”  
Cotización: ".$message;

mail($contactemail, $subject, $mensaje, $headers);?\>  
I also put the files in the attachment, I hope someone could help me I’m really complicated!!! ;(

Bye
