I am trying to get my flash form to process using some PHP code that I found here in a tutorial. Here is the code
$subject = “My Flash site reply”;
$headers = "From: " . $_POST[“name”];
$headers .= “<” . $_POST[“email”] . ">
";
$headers .= "Reply-To: " . $_POST[“email”] . "
";
$headers .= "Return-Path: " . $_POST[“email”];
$message = $_POST[“message”];
mail($sendTo, $subject, $message, $headers);
?>
This works fine and I receive information in my email.
However, I tried to add more input fields in my flash form like “phone number” and “city”.
I then tried to add to the PHP code like this
$subject = “My Flash site reply”;
$headers = "From: " . $_POST[“name”];
$headers .= “<” . $_POST[“email”] . ">
";
$headers .= "Reply-To: " . $_POST[“email”] . "
";
$headers .= "Return-Path: " . $_POST[“email”];
$message = $_POST[“message”];
$phone = $_POST[“phone”];
$city = $_POST[“city”];
mail($sendTo, $subject, $phone, $city, $message, $headers);
?>
When I did this, the form did not send any more info to my email. Something is not right. I know its the PHP coding but I do not know how to fix it. Can some one help?