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