# Email PHP form

**URL:** <https://forum.kirupa.com/t/email-php-form/148294>\
**Category:** Uncategorized\
**Created:** [May 18, 2005, 6:48pm UTC](https://forum.kirupa.com/t/email-php-form/148294 "2005-05-18T18:48:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dopemac](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@Dopemac](https://forum.kirupa.com/u/Dopemac)\
**Post date:** [May 18, 2005, 6:48pm UTC](https://forum.kirupa.com/t/email-php-form/148294/1 "2005-05-18T18:48:52Z")

</div>

There has been countless posts with problems regarding people trying to make one of these but I checked through them all and didn’t feel that any of them answered my problem. My email form sends email but no subject. I’m aware that there is a typo on the tutorial [ttp://www.kirupa.com/developer/actionscript/flash\_php\_email.htm](http://www.kirupa.com/developer/actionscript/flash_php_email.htm) and think I have compensated for this. Can someone have a look see if I’m heading in the right direction please?  
The PHP code is

```php
 <?php 
$sendTo = "graham@namik.co.uk"; 
$subject = "Namik.co.uk"; 
$headers = "From: " . $_POST["name"]; 
$headers .= "<" . $_POST["email"] . ">
"; 
$headers .= "Reply-To: " . $_POST["email"] . "
"; 
$headers .= "Return-Path: " . $_POST["email"]; 
$body = $_POST["body"]; 
mail($sendTo, $subject, $body, $headers); 
?> 

```

Unfortunately I don’t seem to be able to upload the swf which bums me out a bit but if anyone can see where I’m going wrong I’d greatly appreciate a slap. (Edit: File was too big. Bums.) I’m following the action script word for word in the tute. (copy and paste)  
Ta.
