# Flash Email Form - Help Please

**URL:** <https://forum.kirupa.com/t/flash-email-form-help-please/178576>\
**Category:** Uncategorized\
**Created:** [February 12, 2006, 3:27am UTC](https://forum.kirupa.com/t/flash-email-form-help-please/178576 "2006-02-12T03:27:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cupaball](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@cupaball](https://forum.kirupa.com/u/cupaball)\
**Post date:** [February 12, 2006, 3:27am UTC](https://forum.kirupa.com/t/flash-email-form-help-please/178576/1 "2006-02-12T03:27:30Z")

</div>

I posted this in the php section also, I wasn’t sure where it applied.

Well I never seem to get any help on this forums but I will ask again.

I have complete the flash email form here on Kirupa and I cannot seem to get it to work (note: I have the form being loaded into the main swift)

The code for the send button is:

```php
 on (release) {
 // send variables in form movieclip (the textfields)
 // to email PHP page which will send the mail
     form.loadVariables("email.php", "POST");
}
 

```

and the code for the form is

```php
 onClipEvent(data){
 // show welcome screen
 this._parent.nextFrame();
} 

```

and the code for the email.php which I think is wrong also is

```php
 <?php 
$sendTo = "mhaynes@blahblah.com"; 
$subject = "My Flash site reply"; 
$headers = "From: " . $_POST["name"]; 
$headers .= "<" . $_POST["email"] . ">
"; 
$headers .= "Reply-To: " . $_POST["email"] . "
"; 
$headers .= "Return-Path: " . $_POST["email"]; 
$message = $_POST["body"], $_POST["phone"];
mail($sendTo, $subject, $message, $headers); 
?> 

```

any help would be great.
