This is the php script from the Flash form tutorial.
<?php
$sendTo = "*********@gmail.com";
$subject = "My Flash site reply";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>
I wanted to modify it to add a few more fields instead of just one message field i.e telephone number, address etc
If there are a few more variables posted from flash like this:
$message = $_POST["message"];
$telephone = $_POST["telephone"];
$address = $_POST["address"];
How do I modify this line:
mail($sendTo, $subject, $message, $headers);
to include the new variables within the message field.