# PHP/Flash Mail Form Problem

**URL:** <https://forum.kirupa.com/t/php-flash-mail-form-problem/54180>\
**Category:** Uncategorized\
**Created:** [June 11, 2004, 6:09pm UTC](https://forum.kirupa.com/t/php-flash-mail-form-problem/54180 "2004-06-11T18:09:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zak](https://avatars.discourse-cdn.com/v4/letter/z/8e7dd6/32.png) [@Zak](https://forum.kirupa.com/u/Zak)\
**Post date:** [June 11, 2004, 6:09pm UTC](https://forum.kirupa.com/t/php-flash-mail-form-problem/54180/1 "2004-06-11T18:09:36Z")

</div>

I just Have a simple php/flash mail form question.

**So here is my php Script:**  
\<?php  
$sendTo = "Blazo02@aol.com";  
$subject = “Zak Colemans 2004 Summer Portfolio”;

$headers = “From: " . $\_POST[“name”];  
$headers .= “\<” . $\_POST[“email”] .”\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”];  
$headers = "Title: " . $\_POST[“title”];  
$headers = "Telephone: " . $\_POST[“telephone”];  
$headers = "Company: " . $\_POST[“company”];  
$message = $\_POST[“message”];

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

* * *

**And here are my variable names:**  
-name  
-email  
-title  
-telephone  
-company  
-message

* * *

**When you press the button to send the actions are:**

on (release) {  
form.loadVariables(“email.php”, “POST”);  
}

* * *

**And the Movieclip forma actions are:**  
onClipEvent(data){  
\_root.nextFrame();  
}

* * *

Now I am almost 100% sure that it has to do with the php, because that is what i am the worst at, any help at all would be appreciated.

- Thanks a Ton, Zak :bounce:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2004, 12:55am UTC](https://forum.kirupa.com/t/php-flash-mail-form-problem/54180/2 "2004-07-16T00:55:19Z")

</div>

So, it’s just not sending? Or what?

In any case, I noticed an error with your headers portion of the PHP. It should look like this:

```php
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Title: " . $_POST["title"] . "
";
$headers .= "Telephone: " . $_POST["telephone"] . "
";
$headers .= "Company: " . $_POST["company"];
$message = $_POST["message"];

```

Good luck! That should work, unless I missed something myself…

EDIT: And don’t worry, the most professional people miss things like that in any type of programming. I just took 3 hours finding out that I myself forgot one of those dots in a mail form. Nice, huh?
