I need some help, I have a form and I can’t figure out how to get my checkboxes to be incorporated into the form (I have two with instance names phone_check and email_check). Here is the actionscript on my submit button:
on (release) {
var nLv:LoadVars = new LoadVars();
nLv.name = name.text;
nLv.phone = phone.text;
nLv.email = email.text;
nLv.hear = hear.text;
nLv.comments = comments.text;
nLv.sendAndLoad(“form.php”,nLv,“GET”);
gotoAndPlay (16);
and my PHP script is:
<?php
$name = $_GET[‘name’];
$phone = $_GET[‘phone’];
$email = $_GET[‘email’];
$hearabout = $_GET[‘hear’];
$comments = $_GET[‘comments’];
$to .= "XXXX@yahoo.com";
$subject = “Website Contact”;
$msg .= "Name: $name
";
$msg .= "Phone: $phone
";
$msg .= "Email: $email
";
$msg .= "How did you hear about: $hearabout
";
$msg .= "Comments: $comments
";
$headers .= “From: $name <$email>”;
mail($to, $subject, $msg, $headers);
?>
All the text fields work fine, but I am trying to figure out the checkboxes?
Also, is it possible to give a check box a label but not have it show up in the movie?
Thanks