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.
OK, this sends 'notes' to email@example.com 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?Code:<? $email = $_REQUEST['email'] ; $message = $_REQUEST['notes'] ; mail( "firstname.lastname@example.org", "Email Form", $message, "From: $email" ); header( "Location: http://www.example.co.uk/thanks.html" ); ?>
Again, I know this is probably a totally stupid question, but I can't find the answer anywhere.