|
Author |
Message |
speakerboxx
Junior WebHelper
Joined: 20 Jan 2004
Posts: 2
|
Posted:
Tue Jan 20, 2004 6:13 pm (20 years, 3 months ago) |
|
I've created a contact form with flash and php. My php coding has been ok until I decided to add the date(). My php is:
<?php
$today = date("F j, Y, g:i a");
$to = "jdbinsulationsltd@f2s.com";
$subject = "Customer Enquiry";
$msg = "$today\n\nCompany: $company\nName: $name\n\n Enquiry: \n $enquiry\n";
mail($to, $subject , $msg, "From: JD Bruce Website\nReply-To: $emailinput\n");
?>
Problem is the email I receive from the php coding is wrong, see below. Why do I get everything that is in bold? The text inside the bold text is the message I wanna show only.
January 20, 2004, 6:03 pm
Company: asdasd
Name: asdasd
Enquiry:
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="12" COLOR="#333333">jdajdlasjdkalsjdlkasnd</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="12" COLOR="#333333">dlffsd';lf';sdfsdfsdf</FONT></P></TEXTFORMAT> |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue Jan 20, 2004 7:16 pm (20 years, 3 months ago) |
|
What are you trying to do to the contents of your <textarea>? None of the code you posted should be inside it, at any rate, and that is why the browser is sending it back as content. |
________________________________
|
|
|
|
speakerboxx
Junior WebHelper
Joined: 20 Jan 2004
Posts: 2
|
Posted:
Wed Jan 21, 2004 2:09 am (20 years, 3 months ago) |
|
Please can you elaborate on your findings! I'm new to php. How can I simplify code or alter to stop the problem. |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Jan 21, 2004 5:08 pm (20 years, 3 months ago) |
|
Wherever the code is for the <textarea>, remove whatever's inside it (make a backup of the file before you make the changes though). |
________________________________
|
|
|
|
jayant
Team Member
Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India
|
Posted:
Fri Jan 23, 2004 5:10 pm (20 years, 3 months ago) |
|
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.114423 seconds :: 19 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |