I got this PHP code off a site and its works great. But I added a new field called 'name' and I cant find out a way to include that field when the results are emailed to me. Right now, the only thing I get in the message field of my email is the $message. I tried adding, $message,$name but then I get an error and the email does note even get sent.
What I want is for the email I get to include the $message and the $name fields. Right now it just includes the $message field
Code:<?php $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; $name = $_REQUEST['name']; mail( "email@example.com", "Form Results", $message, "From: $email" ); header( "Location: thankyou.html" ); ?>