# Email/PHP Form Not Working

**URL:** <https://forum.kirupa.com/t/email-php-form-not-working/221148>\
**Category:** flash\
**Created:** [April 1, 2007, 11:05pm UTC](https://forum.kirupa.com/t/email-php-form-not-working/221148 "2007-04-01T23:05:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrloftheCity](https://avatars.discourse-cdn.com/v4/letter/g/ccd318/32.png) [@GrloftheCity](https://forum.kirupa.com/u/GrloftheCity)\
**Post date:** [April 1, 2007, 11:05pm UTC](https://forum.kirupa.com/t/email-php-form-not-working/221148/1 "2007-04-01T23:05:47Z")

</div>

I am trying to make an e-mail form that is integrated into Flash. To do this, I have been using the tutorial on this site at: [http://www.kirupa.com/developer/act…h\_php\_email.htm and have followed it pretty much to the t. However, when I test the form out at http://www.terrieades.com/in\_progress/pda/largered.html](http://www.kirupa.com/forum/../developer/actionscript/flash_php_email.htm) (click on “Mail”), it never alerts me that the form has been sent, which I have set it up to do. Since I followed the directions so closely, I’m not sure if this is a problem with the AS, or the PHP file.

Here are both:

[http://www.terrieades.com/in\_progress/pda/Flash Presentations/pda\_largered.zip](http://www.terrieades.com/in_progress/pda/Flash%20Presentations/pda_largered.zip)(FLA file)

```php
<?php
$sendTo = " . $_POST["to"] . ";
$subject = "E-mail from Future PDA";

$headers = "From: Future PDA Demo";
$headers .= "pda_demo@terrieades.com";
$headers .= "Reply-To: pda_demo@terrieades.com";
$headers .= "Return-Path: pda_demo@terrieades.com"];
$message = $_POST["message"];

mail($sendTo, $subject, $message, $headers);
?>

```

Thanks for any help, and thanks for the great tutorial! (I have actually gotten it to work on another site before, which is why I wanted to come back to it.)
