I am using the form below, and it works except for sending the message to
the user, any ideas/clues ?
Being so close to it working is driving me nuts !

<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Feedback Form</title>
<form action="simplefeedback.php" method="post">
<p>Please provide me your feedback!</p>
<p>Enter your name: <input type="text" name="name" size="40"></p>
<p>Enter you e-mail: <input type="text" name="email" size="40"></p>
<p>Enter your feedback:<br>
<textarea name="feedback" rows="3" cols="50"></textarea></p>
<p><input type="submit" name="submit" value="Send Feedback">

if(!$submit) {
header("Location: http://www.imsltd.com/feedback.html";);
$subject = "Feedback";
$mail_body = "Feedback From Your Site\n";
$mail_body .= "Sender's Name: $name\n";
$mail_body .= "Sender's E-Mail: $email\n";
$mail_body .= "Feedback: $feedback\n\n";
$mail_headers = "From: My Web Site <> \n";
$mail_headers .= "Reply-To: $sender_email\n\n";
mail($mail_to, $mail_subject, $mail_body, $mail_headers);
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Feedback Form</title>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080"
<p><b>Thank you for your feedback.<br>You have sent the following
<p>Your Feedback Message:<br>
<? echo "$feedback"; ?></p>
<p>Your Name: <? echo "$name"; ?></p>
<p>Your Email: <? echo "$email"; ?></p>

Many thanks

Denis Croombs

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to