Contact Form PHP

Hey, I haven’t used PHP before, so I don’t really know too much about what I’m doing. I have followed Senocular’s tutorial on creating a contact form in flash, which uses a simple php file to email the details to an email address. I have managed to make the form work, with one problem: I have more fields that Senocular’s tutorial had, and I am unsure how to get the information included in the php. I have set up all the variables in flash, but I cannot get the information to be emailed - I tried using references like $message2 but I got bizarre messages with only certain variables (maybe something to do with the hosting, since some of the messages contained in the email referred to them). Anyway, my setup was originally as follows:

<?php
$sendTo = "[email protected]";
$subject = “Genesis Website Orders”;
$headers = "From: " . $_POST[“name”];
$headers .= “<” . $_POST[“email”] . ">
";
$headers .= "Reply-To: " . $_POST[“email”];
$message = $_POST[“bname”];
$message = $_POST[“bform”];
$message = $_POST[“notes”];
$message = $_POST[“product”];
mail($sendTo, $subject, $message, $headers);
?>

I have experiemented a little, but my lack of php knowledge has left me stumped. Any help would be greatly appreciated. Thanks.

Best Regards

Insomniac