I have a simple flash/php contact form as per the script below:
PHP:
<?
$sendTo = "info@mydomain.com";
$subject = "email signup";
$headers = "From: " . $_POST["email"];
$message = $_POST["email"];
mail($sendTo, $subject, $message, $headers);
?>
Flash Submit Button:
on (release) {
_root.fields.loadVariables("email.php", "POST");
_root.fields.emailInput.text = "< email address >";
_root.fields.emailInput.hscroll = 0;
_root.fields.emailInput.onSetFocus = function() {
if (this.text == "< email address >") {
this.text = "";
}
};
}
Everything works fine except this is the message I get emailed:
<TEXTFORMAT LEADING=\"2\"><P ALIGN=\"CENTER\"><FONT FACE=\"Arial\" SIZE=\"10\" COLOR=\"#999999\" LETTERSPACING=\"0\" KERNING=\"0\">testing@testing.com</FONT></P></TEXTFORMAT>
It’s not too bad as the email address is embedded in all the html stuff, but does anything know what I’m doing wrong?
Thanks.