# Flash Email Form - Help Please

**URL:** <https://forum.kirupa.com/t/flash-email-form-help-please/178575>\
**Category:** flash\
**Created:** [February 12, 2006, 3:15am UTC](https://forum.kirupa.com/t/flash-email-form-help-please/178575 "2006-02-12T03:15:44Z")\
**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:15am UTC](https://forum.kirupa.com/t/flash-email-form-help-please/178575/1 "2006-02-12T03:15:44Z")

</div>

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)

By the way this works locally, but does not on the server (i.e. when I press the send button, it jumps to the next frame, the thank you frame)

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.
