I’m having problems getting my emailer to work in my Flash file. I used the onClipevent showed in the Kirup tutorials but my emailer for some reason, just kept looping. So I just set it to gotoandstop at the frame with the thank you on it but then the email doesn’t send. If anyone can help that’d be great, thanks.
My Code for the form is:
onClipEvent(data){
// show welcome screen
_root.nextFrame();
}
The send button:
on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("email.php", "POST");
}
and the PHP file:
<?php
$sendTo = "[EMAIL="brendand@money4shop.com"]brendand@money4shop.com[/EMAIL]";
$subject = "My Flash site reply";
$headers = "From: " . $_POST["name"] ."<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>