By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,892 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,892 IT Pros & Developers. It's quick & easy.

Php email through flash contact page is jibberish. HELP PLEASE!!!

P: 1

I am creating a contact page for a my website and I am having a bit of trouble. I have created the form in flash, and am using a php file to send the email to myself. The form works OK, but when it deliver's it to my inbox, I am getting all of this jibberish with the email Example:

Expand|Select|Wrap|Line Numbers
  4. Message: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#242868" LETTERSPACING="0" KERNING="0">this is a test</FONT></P></TEXTFORMAT>
  5. _childCounter: 1
  6. focus_mc: _level0.depthChild0
I was wondering if anyone knew a way that I could get it to send clean emails that I could read? I have been trying to figure this out for 2 days. I have done just about every tutorial on the net, and searched every PHP site to see if I can figure it out and I am stuck. My input boxes are named Name, Phone, Email and Message. The script I have used on my submit button is:

Expand|Select|Wrap|Line Numbers
  1. on (release) {
  2. if (Name eq "" or Phone eq "" or Email eq "" or Message eq "") {
  3. stop();
  4. } else {
  5. loadVariablesNum("form.php", 0, "POST");
  6. gotoAndStop(191);
  7. }
  8. }
And the PHP file is:

Expand|Select|Wrap|Line Numbers
  1. <?php
  3. $Name = $_POST["Name"];
  4. $Email = $_POST["Email"];
  5. $Phone = $_POST["Phone"];
  7. $ToEmail = "";
  8. $ToSubject = "Websit Inquiry";
  10. $EmailHeader="This person has submitted this feedback\n\n\n";
  11. $EmailBody = "Name: $Name\nEmail: $Email\nTelephone: $Phone\n";
  13. $Message = $EmailHeader.$EmailBody;
  14. mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");
  15. ?>
Any help would be great as this is driving me insane!!!
Jul 31 '07 #1
Share this Question
Share on Google+
2 Replies

P: 1
It looks as though the texfields in your form are set to "render text as HTML".

Try unselecting that in the properties menu of each texfield (it's the button that looks like this: <>) and see how that works for you.
Aug 4 '07 #2

P: 1
I am getting the exact same error. I have tried turning "render text as HTML" option on and off and I am still getting the HTML code in my emails. Any other suggestions.

Staryeyes47....did you ever get this resolved?

Any help would be very much appreciated.

Aug 12 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.