473,408 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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

Hi,

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
  1. Name: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#242868" LETTERSPACING="0" KERNING="0">Test</FONT></P></TEXTFORMAT>
  2. Phone: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#242868" LETTERSPACING="0" KERNING="0">111111111</FONT></P></TEXTFORMAT>
  3. Email: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#242868" LETTERSPACING="0" KERNING="0">someone@something.com</FONT></P></TEXTFORMAT>
  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
  2.  
  3. $Name = $_POST["Name"];
  4. $Email = $_POST["Email"];
  5. $Phone = $_POST["Phone"];
  6.  
  7. $ToEmail = "email@email.com";
  8. $ToSubject = "Websit Inquiry";
  9.  
  10. $EmailHeader="This person has submitted this feedback\n\n\n";
  11. $EmailBody = "Name: $Name\nEmail: $Email\nTelephone: $Phone\n";
  12.  
  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
2 4052
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
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.

Thanks,
Aug 12 '08 #3

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

Similar topics

3
by: Tatyana | last post by:
Hello, I was wondering if anybody knows how to disable Email Sending on Page Refresh. When shopper submits the order he/she is being redirected to the receipt page and gets the email...
1
by: paolazi | last post by:
HI I have a flash templates..that uses php as well now I have a problem with my contact page as follows: the user enter his name, email and message into flash input whose Var are: your_name,...
2
by: kyllle | last post by:
Ok so Iv created a web site that consists of sliding navigation, basically there are 7 buttons on the page and when each one is selected the appropriate page slides over, one of the buttons I have is...
1
by: arad | last post by:
I have a Flash animation page that runs for about 20 or 30 sec. Once the animation is done playing I want it to automatically go to the home page of my website. Is there some code that I can use to...
2
Jarquesz
by: Jarquesz | last post by:
I need to email a web page with its content. The user should be able to click on the "email this page button" and then it should open in a new email message with all the body text of the web page in...
2
by: jakekoh | last post by:
Guys, using php i created quiz randomly pick questions from a text file, then i have a markquiz script done up. how can i email the markquiz page to a email with php?
12
by: =?Utf-8?B?ZGdvdw==?= | last post by:
I designed a "contact_us" page in visual web developer 2005 express along with EW2 after viewing tutorials on asp.net's help page. Features work like they should, but I cannot figure out how to...
8
Catalyst159
by: Catalyst159 | last post by:
I am trying to create a contact form in Flash CS3 for my website. The form will be used to send an email to a specifies email addresse. I am a little confused as to how I can go about doing this...
3
by: xlr8u2 | last post by:
hi all i have been trying and trying to set up a contact page on godaddy. they require that i use a php script here is their example. <form action="/gdform.php" runat="server" method="post"> ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.