PHP/Flash Mail Form Problem

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

So here is my php Script:
<?php
$sendTo = "[email protected]";
$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:

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:

$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?