Sending e-mail with check-boxes

Hello,

I know it’s been a few threads about this already, but I haven’t really got an answer. I have followed the tutorial Flash-Based Email Form Using PHP here at Kirupa, but now I want to add checkboxes to it. How do you do that? Can anyone help me? What kind of AS code and PHP code can I use to get the components to work?

This is the code for the submit-button:

on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables(“email.php”, “POST”);
}


The code attached to the form:

onClipEvent(data){
// show welcome screen
_root.nextFrame();
}

And finally, the php code:

<?php

$sendTo = “mail@example.com”;
$subject = “My Flash site reply”;

$headers = “From: " . $_POST[“firstName”] .” “. $_POST[“lastname”] . “<” . $_POST[“email”] .”>
";
$headers .= "Reply-To: " . $_POST[“email”] . "
";
$headers .= "Return-path: " . $_POST[“email”];

$message = $_POST[“message”];

mail($sendTo, $subject, $message, $headers);

?>

I truly appreciate all the help I can get!:slight_smile: