# Flash Form Problem

**URL:** <https://forum.kirupa.com/t/flash-form-problem/243605>\
**Category:** Uncategorized\
**Created:** [November 8, 2007, 8:04pm UTC](https://forum.kirupa.com/t/flash-form-problem/243605 "2007-11-08T20:04:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raygunray](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@raygunray](https://forum.kirupa.com/u/raygunray)\
**Post date:** [November 8, 2007, 8:04pm UTC](https://forum.kirupa.com/t/flash-form-problem/243605/1 "2007-11-08T20:04:59Z")

</div>

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:

```auto

Name: test 

Email: [EMAIL="test@test.com"]test@test.com[/EMAIL] 

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

```

Here is the button code:

```auto

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);
} 

```

PHP Code:

```auto

<?php 

$TextVariable = '&results='; 

$response = 'Message Sent'; 

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); 

?>

```
