nate51
02-10-2009, 04:23 AM
I have a form that I use for submitting data. With HTML everything works perfect, but when I use it with flash for some reason the contents submitted come to my email like this "Name: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"10\" COLOR=\"#353C53\" LETTERSPACING=\"0\" KERNING=\"0\">John Doe</FONT></P></TEXTFORMAT>
Email: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"10\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">jdoe@hotmail.com</FONT></P></TEXTFORMAT>
Message: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"10\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">message content's</FONT></P></TEXTFORMAT>"
Does anyone know why the emails are coming to me as HTML code?
This is the submission code in flash
on(rollOver) {
sendbtn.gotoAndPlay("over");
}
on(rollOut) {
sendbtn.gotoAndPlay("out");
}
on(press) {
form.loadVariables("email.php", "POST");
}
and if needed this is the php code that sends the data
<?php
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
$subject = "Inquiry/Comment";
$message = "
Name: $name
Email: $email
Message: $message
";
mail("xxxx@xxxx.com", $subject, $message);
?>
I submitted this to flash as I feel it is more of a flash issue than php.
Email: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"10\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">jdoe@hotmail.com</FONT></P></TEXTFORMAT>
Message: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"10\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">message content's</FONT></P></TEXTFORMAT>"
Does anyone know why the emails are coming to me as HTML code?
This is the submission code in flash
on(rollOver) {
sendbtn.gotoAndPlay("over");
}
on(rollOut) {
sendbtn.gotoAndPlay("out");
}
on(press) {
form.loadVariables("email.php", "POST");
}
and if needed this is the php code that sends the data
<?php
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
$subject = "Inquiry/Comment";
$message = "
Name: $name
Email: $email
Message: $message
";
mail("xxxx@xxxx.com", $subject, $message);
?>
I submitted this to flash as I feel it is more of a flash issue than php.