Hi all. I know nothing about PHP so I’m sure this is a breeze for most of you. I can’t find a tute for adding subtitles to the output of my php email that was kindly supplied to me. I just need the subheadings “Name:, Company:, Email:, Phone:, Enquiry:” added before whatever the visitor enters on the email. Please find the script below:
<?php
$sendTo = “
$subject = “web site enquiry form”;
$from_address = @$HTTP_POST_VARS[’email’];
$headers = “From: ” . $_POST[“firstName”] .” “. $_POST[“email”] .”>rn”;
$headers .= “Reply-To: ” . $
$headers .= “Return-path: ” . $_POST[“email”];
$body = $_POST[“name”].”nn”;
$body .= $
$body .= $_POST[“email”].”nn”;
$body .= $
$body .= $_POST[“enquiry”];
mail($sendTo, $subject, $body, $headers);
?>
I think it has something to do with the “$body =” part but I aren’t sure how to include the subheadings. I have tried a few things but didn’t even receive the response email after doing the changes. I hope this is clear. Any help much appreciated.
Cheers
Lance