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
and if needed this is the php code that sends the dataCode:on(rollOver) { sendbtn.gotoAndPlay("over"); } on(rollOut) { sendbtn.gotoAndPlay("out"); } on(press) { form.loadVariables("email.php", "POST"); }
I submitted this to flash as I feel it is more of a flash issue than php.Code:<?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); ?>






Bookmarks