Hi all. I am very new to PHP and I am trying to make an email form. It works fine, I just have one problem that is probably really easy to sort out.
$email = $_REQUEST['email'] ;
$message = $_REQUEST['notes'] ;
mail( "email@example.com", "Email Form",
$message, "From: $email" );
header( "Location: http://www.example.co.uk/thanks.html" );
OK, this sends 'notes' to firstname.lastname@example.org
with a subject of 'Email Form' then redirects the viewer to the thanks page. It works fine. But I have some more info I need to send too, 'page' and 'name'. How can I add them to the email message that is sent?
Again, I know this is probably a totally stupid question, but I can't find the answer anywhere.