# CheckBox and PHP in Flash

**URL:** <https://forum.kirupa.com/t/checkbox-and-php-in-flash/227602>\
**Category:** flash\
**Created:** [May 31, 2007, 4:59pm UTC](https://forum.kirupa.com/t/checkbox-and-php-in-flash/227602 "2007-05-31T16:59:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoakimN73](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JoakimN73](https://forum.kirupa.com/u/JoakimN73)\
**Post date:** [May 31, 2007, 4:59pm UTC](https://forum.kirupa.com/t/checkbox-and-php-in-flash/227602/1 "2007-05-31T16:59:38Z")

</div>

Hi!  
I am trying to work out a Checkbox in a FLASH/PHP mail form.  
I can get it to work so it will send a “1” or “0” in the mail. But I would like to have it saying “Yes” or “No” instead of “1” or “0”… Anyone that knows how it can be done?

This is the code that I use in the Flash file on the “submit” button… ( **cb\_broschyr** is the instance name of the CheckBox…).

```auto
on (release) {
trace(cb_broschyr);
cb = cb_broschyr.selected == true | false() .data ;;
trace(name_txt + " " + message_txt + " " + cb + " " + telephone_txt + " " + email_txt);
if (name_txt == undefined || message_txt == undefined || telephone_txt == undefined || email_txt == undefined) {
stop();
 
} else {
loadVariablesNum("form.php", 0, "POST");
gotoAndStop(2);
}
}
on (release) {
name_txt = "";
message_txt ="";
telephone_txt = "";
email_txt="";
}

```

When I receive a e-mail with this setup it can look like this:

_Contact Form_  
_Reply-To:test(a)test.nu_

_This message has been sent from your Contact Form_

_name: test_  
_message: test_  
_telephone: 070-test_  
_email: test(a)test.nu_  
_broschyr: 1_

Thankful for help!

Best regards  
Joakim
