Help with flash based email and php please

hey there,

I used the tutorial at http://www.kirupa.com/developer/act…h_php_email.htm and got it to send, but can’t seem to get the php completely right. I added several more fields to the email form and can’t get the php right so that the info entered in each field is sent in the email. The best I’ve got is for the form to recognise only one field that I added, and if I change the php to try and fix this, then the email doesn’t send.

Here is the php I’m using, which as it stands won’t send the email when the submit button is clicked. Any help greatly appreciated.

<?php
$sendTo = “[email protected]”;
$subject = “Golf Course Booking Form”;
$headers = "From: " . $_POST[“leadName”];
$headers .= “<” . $_POST[“fromEmail”] . ">
";
$headers .= "Reply-To: " . $_POST[“FromEmail”] . "
";
$headers .= "Return-Path: " . $_POST[“fromEmail”];
$package = $_POST[“whichPackage”];
$noofpeople = $_POST[“howManyPeople”];
$nongolfers = $_POST[“anyNonGolfers”];
$carhire = $_POST[“carHire”];
$transfer = $_POST[“transferTransport”];
$golfbuggies = $_POST[“golfBuggies”];
$totalpackage = $_POST[“totalPackage”];
$golfcourses = $_POST[“golfCoursesOnly”];
$specialreq = $_POST[“specialRequirements”];
$email = $_POST[“fromEmail”];
$phone = $_POST[“fromNumber”];
$name = $_POST[“leadName”];
$address = $_POST[“leadAddress”];
$noinparty = $_POST[“numberInParty”];
$names = $_POST[“partyNames”];
$arrivaldate = $_POST[“arrivalDate”];
$arrairportuk = $_POST[“arrivalAirportUk”];
$arrairportire = $_POST[“arrivalAirportIreland”];
$deptdate = $_POST[“departureDate”];
$deptairportire = $_POST[“departureAirportIreland”];
$deptairportuk = $_POST[“departureAirportUk”];
$message = $_POST[“comments”];

mail($sendTo, $subject, $package, $noofpeople, $nongolfers, $carhire, $transfer, $golfbuggies, $totalpackage, $golfcourses, $specialreq, $email, $phone, $name, $address, $noinparty, $names, $arrivaldate, $arrairportuk, $arrairportire, $deptdate, $deptairportire, $deptairportuk, $message, $headers);
?>