Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 14, 2008, 05:29:47 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Flash Form Problem  (Read 648 times)
antray
Spaceship Navigator
*****
Offline Offline

Posts: 82


WWW
« on: November 09, 2007, 06:21:38 AM »

I have a flash form which sends correctly, but the email sent has html tags in the comment field. The comment field is a multiline form element.

How do I make it send without the html tags?
example:

Code:
Name: test

Email: test@test.com

Comments: <P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"14\"
COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">test</FONT></P>

Code:
on (release) {

// logical operator makes sure the textfield is not blank. IndexOf checks for "@" and "." characters in textfield

if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {

results = "Please check your e-mail address.";

} else if (!comments.length) {

results = "Please enter your comments.";

} else if (!name.length) {

results = "Please enter your name.";

} else {

loadVariablesNum ("http://www.grahamarchitecture.com/mailform.php", 0, "GET");

results = "Sending Data...";
gotoAndPlay(33);
}

Code:
echo $TextVariable;

echo $response;

/* recipients */

$recipient .= "info@grahamarchitecture.com, arelmore@comcast.net" ;

/* subject */

$subject = "Message from Website Contact Form";

/* message */

$message .= "Name: $name

Email: $email


Comments: $comments";

/* additional header pieces for errors, From cc's, bcc's, etc */

$headers .= "From: $name <$email>n";

/* and now mail it */

mail($recipient, $subject, $message, $headers);

?>
Logged

"I don't have time to chase my dreams.  I ask em' where they're going and catch up with them later."
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM