php form not including a field in the email sent to me
I have tried to add a phone field to an existing form on my site, I just duplicated the existing email field and changed to say phone instead. The form works fine except that the email that comes through to me has all entered data from the form except for the phone field. Help would be great as I am a bit of a newbie.
Here is the mail.php:
<?php
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$phone = $_REQUEST['phone'] ;
$comments = $_REQUEST['comments'] ;
$message =
"
Name: $name\n
Email: $email\n
Phone: $phone\n
Comments: $comments
";
mail( "removedforprivacy", "Email from my website, sent by $name",
Bookmarks