I am trying to add a few more fields to the php email tutorial, but I am not having luck getting the php script to work with the new data - this is how I tried to do my php script:
$sendTo = “auona@yahoo.com”;
$subject = $_POST[“subject”];
$headers = “From: " . $_POST[“name”] .” <" . $_POST[“email”] .">
";
$headers .= "Reply-To: " . $_POST[“email”] . "
";
$headers .= "Return-path: " . $_POST[“email”];
$comments = $_POST[“message”];
$company = $_POST[“company” ];
$address = $_POST[“address”];
$city = $_POST[“city”];
$state = $_POST[“state”];
$zip = $_POST[“zip”];
$phone = $_POST[“phone”];
$joblocation = $_POST[“joblocation”];
[COLOR=red]$message = ($comments, $company, $address, $city, $state, $zip, $phone, $joblocation);[/COLOR]
mail($sendTo, $subject, $body, $headers);
I tried to change the $message to $body as I saw in another example with no luck.
Might anyone be willing to help?
Thank you.