# Email Contact Form

**URL:** <https://forum.kirupa.com/t/email-contact-form/227820>\
**Category:** Uncategorized\
**Created:** [June 2, 2007, 4:32pm UTC](https://forum.kirupa.com/t/email-contact-form/227820 "2007-06-02T16:32:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_u\_r](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@m\_u\_r](https://forum.kirupa.com/u/m_u_r)\
**Post date:** [June 2, 2007, 4:32pm UTC](https://forum.kirupa.com/t/email-contact-form/227820/1 "2007-06-02T16:32:49Z")

</div>

I have a simple flash/php contact form as per the script below:

PHP:

```auto
<?
$sendTo = "info@mydomain.com";
$subject = "email signup";
$headers = "From: " . $_POST["email"];
$message = $_POST["email"];
mail($sendTo, $subject, $message, $headers);
?>

```

Flash Submit Button:

```auto
on (release) {
	_root.fields.loadVariables("email.php", "POST");
	_root.fields.emailInput.text = "< email address >";
	_root.fields.emailInput.hscroll = 0;
	_root.fields.emailInput.onSetFocus = function() {
		if (this.text == "< email address >") {
			this.text = "";
		}
	};
}

```

Everything works fine except this is the message I get emailed:

```auto
<TEXTFORMAT LEADING=\"2\"><P ALIGN=\"CENTER\"><FONT FACE=\"Arial\" SIZE=\"10\" COLOR=\"#999999\" LETTERSPACING=\"0\" KERNING=\"0\">testing@testing.com</FONT></P></TEXTFORMAT>

```

It’s not too bad as the email address is embedded in all the html stuff, but does anything know what I’m doing wrong?

Thanks.
