Help Please
I'm trying to get this to work what i need it to do is show the username thats been typed in the contact form to show in the body of the message with the comments. I have only added the $user at the top still needs to be put in the bottom half
can anyone help me please.
PHP Code:<?
$name = $_POST['name'];
$email = $_POST['email'];
$user = $_POST['user'];
$comment = $_POST['comment'];
if ($name != ""){
if ($comment != ""){
if ($email != ""){
mail( "[email protected]", "Feedback From $name",
"$comment", "From: $email" );
$feedback = "Comment Sent.";
} else {
$feedback = "You have left one or more of the fields empty. Please go <a href=\"signup.html\">back</a> and make sure you enter information in every field.";
}
} else {
$feedback = "You have left one or more of the fields empty. Please go <a href=\"signup.html\">back</a> and make sure you enter information in every field.";
}
} else {
$feedback = "You have left one or more of the fields empty. Please go <a href=\"signup.html\">back</a> and make sure you enter information in every field.";
}
?>
<? echo "$feedback"; ?>
