Adding Fields To E-mail Forms

I am using the very good kirupa tut and have added to extra input boxes date and phone

Is this the right php code for adding additional imput boxes?? I have just added 2 lines of message at the bottom.

$headers = "From: " . $_POST[“name”];
$headers .= “<” . $_POST[“email”] . ">
";
$headers .= "Reply-To: " . $_POST[“email”];
$message = $_POST[“message”];
$message = $_POST[“phone”];
$message = $_POST[“date”];

do i need to change any of the below code as there are additional message imput boxes now?

mail(recipient, subject, message, other headers);

Thanks for any help, even if it is to say i have it right or wrong

:slight_smile:

Anyone help? :slight_smile: