why doesn’t my mailform work, that’s the question… I think it’s easier to look at the code than downloading the fla so:
My send button’s actions:
on (release) {
if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
mc.EmailStatus = "Please enter an emailaddress";
}
else {
loadVariablesNum ("mailform.php", "0", "Post");
mc.EmailStatus = "Sending...";
}
}
My mailform.php:
<?
$ToEmail = "lato@webstation.be";
$ToName = "LATO";
$ToSubject = "Contact";
$EmailBody = "Sent By: $FirstName $LastName
Senders Email: $Email
Subject: $Subject
Message:
$ToComments
";
$EmailFooter="http://www.mysite.be";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$LastName." <".$Email.">");
Print "myAppMain.mc.EmailStatus=Your mail has been sent";
?>
The prob: it shows “Sending…” in “EmailStatus” when I click the Send-button, but it just doesn’t send anything.