Hi!
Heres My Script:
Feedback Form
<title>Contact Me</title>
<form method="post" action="mailfeedback.php">
<h2 align="left">Contact Me</h2>
<p>Email:
<input name="email" type="text" />
</p>
<p>Subject:
<input name="subject" type="text" id="subject" />
</p>
<p> Message:<br />
<textarea name="message" rows="12" cols="40">
</textarea>
<br />
<input name="submit" type="submit" />
<input name="reset" type="reset" id="reset" value="Reset" />
</p>
</form>
Script
<?
//Contact form script made by Matt Seymour
//Email: matthew.seymour@btopenworld.com
//Website: http://www.mattseymour.co.uk
$email= $REQUEST['email'] ;
$message= $REQUEST['message'] ;
If (empty ($email)){
print'Please Enter Your Email Address!';
} else {
If (empty ($message)){
print'Please Enter Your Message!';
}else{
mail( "matthew.seymour@btopenworld.com", "Someone Has Left Feedback At Your Site!",
$message, "From: $email" );
}
}
?>
<META HTTP-EQUIV="refresh" CONTENT="2; URL=thanks.html">
Heres my problem, when you do not fill in a field it displays the error i want but it then redirects to the thank you page.I only want the form to be redirceted if the form has been fillled in
Please Help me
Thanks for your time
Monkeyhead