Im not a pro at PHP, just starting actually and was wondering if you could help me.
Im trying to get this contact form to email me stating the Persons Name and the message like this.
Name: Fred Blogs Message: Message, Message.
But when I try all I get is the message, I cant seem to insert the name variable anywhere.
This is the code
<?php
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$subject = $_REQUEST['subject'] ;
mail( "[email protected]", "Name: $name", "$subject", $message, "From: $email" );
header( "Location:contact.php" );
?>