|
-
Jul 24th, 2006, 05:55 PM
#1
Thread Starter
Frenzied Member
Contact Form
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"; ?>
Last edited by Jamie_Garland; Jul 24th, 2006 at 06:04 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|