Flash > PHP email form submitting as HTML rather than plain text?
Hi guys,
Strange problem. I have my flash doc setup to submit an email form as a contact on a page.
The text fields are called:
signupname
signupemail
signupmobile
They are in a movieclip called theform, when the send button is pressed it sends the form to email.php
Code:
on (release) {
theform.loadVariables("email.php", "POST");
}
The PHP file then sends an email to me with the details.
The details are coming through as HTML rather than plain text. Is there a way for me to strip out the html from the text boxes, either in flash or in php?
Currently the emails I get off the form look like:
Code:
Details: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"11\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">Mark</FONT></P></TEXTFORMAT>, <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"11\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">[email protected]</FONT></P></TEXTFORMAT>, <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"11\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">07781545455</FONT></P></TEXTFORMAT>
When it should read:
I've tried setting the text boxes in flash with this code:
Code:
_root.theform.signupname.text = "";
_root.theform.signupemail.text = "";
_root.theform.signupmobile.text = "";
stop();
And also using striptags() in php, but nothing seems to work :(
Some help would be great! :) Thanks chaps!