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]