# Flash to PHP - can't output the checkbox result

**URL:** <https://forum.kirupa.com/t/flash-to-php-cant-output-the-checkbox-result/255251>\
**Category:** flash\
**Created:** [March 20, 2008, 1:10pm UTC](https://forum.kirupa.com/t/flash-to-php-cant-output-the-checkbox-result/255251 "2008-03-20T13:10:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edon\_Muhaxheri](https://avatars.discourse-cdn.com/v4/letter/e/6bbea6/32.png) [@Edon\_Muhaxheri](https://forum.kirupa.com/u/Edon_Muhaxheri)\
**Post date:** [March 20, 2008, 1:10pm UTC](https://forum.kirupa.com/t/flash-to-php-cant-output-the-checkbox-result/255251/1 "2008-03-20T13:10:53Z")

</div>

Hi,  
I’ve created a Flash contact form and I wanted to add a Checkbox  
(I work with Flash CS3, Actionscript 2.0)

Textfields work just fine, but I can’t output the checkbox state.

Thanks!

Here’s the code:

## FLASH

on (release) {

if (name eq “” or subject eq “” or message eq “” or email eq “” or kosvet eq “” or musa eq “”) {  
stop();  
} else {  
loadVariablesNum(“php/form.php”, 0, “POST”);  
}  
{  
name = “”;  
subject="";  
message="";  
email="";  
kosvet="";  
musa="";

if(cbox.getValue() == true){  
var puma=“yes”;

}

* * *

## PHP

[SIZE=2]\<?php

$to = "edon.muhaxheri@gmail.com";

$namp = NAME;  
$messagp = MESSAGE;  
$kosvep = KOSVET;  
$musp = MUSA;  
$puma = false;  
$stringall = $namp."  
“.$name.”

“.$messagp.”  
“.$message.”

“.$kosvep.”  
".$kosvet."n  
“.$musp.”  
“.$musa.”

".$puma;

mail($to, $subject, $stringall, "From: KOSVET.contact.form  
Reply-To: $email  
");  
?\>  
[/SIZE]
