Hello flash experts,
In flash file I have a form of 3 text fields. These are their vars:
txtSendTo
txtYourMail
txtMessage
below are the function and the php file that interacts with the form.
I know how to build a form in php but not in flash. Unfortunately every time I fill in the form and press the submit button I get the error: Email is incorrect. Try again!".
I paid money for a designer for this flash file but the form is not working can anyone direct me? I have a basic knowledge in flash.
thanks!
THE FLASH FUNCTION
==========================
==========
==========
==========
=
bSend.onPress = function() {
if (mcEmailForm.txtSendTo.isE
mail() == true || mcEmailForm.txtYouEmail.is
Email() == true) {
this._parent.loadVariables
("email.ph
p","POST")
;
txtWarning.text = "Your message has been sent. Thank you.";
} else {
txtWarning.text = "Email is incorrect. Try again!";
error = 1;
}
//
gotoAndStop(2);
};
//
txtWarning.text = "";
stop();
==========================
==========
==========
==========
=======
THE PHP FILE
==========================
==========
==========
==========
=======
//
$sendTo = $_POST["txtSendTo"];
$subject = "Your friend thinks this link should be checked";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["txtYourEmail"] .">\r\n";
// next include a replyto
$headers .= "Reply-To: " . $_POST["txtYourEmail"] . "\r\n";
//
$headers .= "Return-path: " . $_POST["txtYourEmail"];
// now we can add the content of the message to a body variable
$message = $_POST["txtMessage"];
$message .= "";
$message .= "my form";
$message .= "the link to the webpage should be here";
//
// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);
//
Start Free Trial