Joshua
2010-12-20 22:50:23 UTC
I created a html and the php file the whole process works except for when i receive a message it only states the subject with no name,no email,no body.
I was told i have to put everything into one variable.
Does anyone know how to do this?
Thanks
This is my PHP code
$name = $_post['name'];
$email = $_post['email'];
$comments = $_post['comments'];
//TO, Subject, Message, Header
mail('info@steadfastpainting.com', 'Comments', $text, 'From: '.$name.' '.$email.'>');
header('Location: thankyou.html');
?>
This is my HTML