# A little problem with Checkbox

**URL:** <https://forum.kirupa.com/t/a-little-problem-with-checkbox/173793>\
**Category:** flash\
**Created:** [December 29, 2005, 7:57pm UTC](https://forum.kirupa.com/t/a-little-problem-with-checkbox/173793 "2005-12-29T19:57:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatiasV](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@MatiasV](https://forum.kirupa.com/u/MatiasV)\
**Post date:** [December 29, 2005, 7:57pm UTC](https://forum.kirupa.com/t/a-little-problem-with-checkbox/173793/1 "2005-12-29T19:57:47Z")

</div>

I am new in all this…  
I am creating a form with Flash and php; and I am using text, datechoose and checkbox.

This is the script I did:

stop();  
var senderLoad:LoadVars = new LoadVars();  
var receiveLoad:LoadVars = new LoadVars();

sender.onRelease = function() {  
senderLoad.theName = theName.text;  
senderLoad.theEmail = theEmail.text;  
senderLoad.theMessage = theMessage.text;  
senderLoad.inicio = inicio.text;  
senderLoad.sendAndLoad(“[http://www.mysite.com/send.php](http://www.mysite.com/send.php)”, receiveLoad);  
};

receiveLoad.onLoad = function() {  
if (this.sentOk) {  
\_root.gotoAndStop(“success”);  
} else {  
\_root.gotoAndStop(“failed”);  
}  
};

What I need to know is how do I create a var to see if a checkbox is click or not.

Here it is the php:

\<?PHP

$to = "me@mysite.com";  
$subject = “ADCO”;  
$message = "Name: " . $theName;  
$message .= "  
Email: " .$theEmail;  
$message .= "

Message: " .$theMessage;  
$message .= "

Inicio: " .$inicio;  
$headers = “From: $theEmail”;  
$headers .= "  
Reply-To: $theEmail";

$sentOk = mail($to,$subject,$message,$headers);

echo “sentOk=” . $sentOk

?\>

Thanks for any help…  
:mu:
