I have made a formmail in flash and needs the chechbox’s (news) to be send along with the other informations.
My AS code is:
on (release) {
if (Firma eq “” or Firma == undefined) {
Status = “Venligst indtast firma navn”;
} else if (Email eq “” or Email == undefined) {
Status = “Venligst indtast email”;
} else if (Message eq “” or Message == undefined) {
Status = “Indtast venligst en besked”;
} else {
lineAdapt();
loadVariablesNum(“email.php”, 0, “POST”);
Firma = “”;
Adresse = “”;
Zip = “”;
City = “”;
Email = “”;
News = “”;
Message = “”;
gotoAndStop(“sent”);
}
}
My php code is:
<?php
$sendTo = “klint@email.dk”;
$subject = “Mail fra Hammers web-site”;
// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = “From: " . $_POST[“Firma”];
$headers .= “<” . $_POST[“Email”] .”>
";
// next include a Reply-To:
$headers .= "Reply-To: " . $_POST[“Email”];
// now we can add the content of the message to a body variable
$message = "Firma: " . $_POST[“Firma”]. "
";
$message .= "Adresse: " . $_POST[“Adresse”]. "
";
$message .= "Zip: " . $_POST[“Zip”]. "
";
$message .= "City: " . $_POST[“City”]. "
";
$message .= "Email: " . $_POST[“Email”]. "
";
$message .= "Nyhedsbrev: " . $_POST[“News”]. "
";
$message .= "Message: " . $_POST[“Message”]. "
";
mail($sendTo, $subject, $message, $headers);
?>
I just doesn’t send the information where the checkbox is checked or unchecked.
Hope you can help me.