ok im making a contact form and it keeps telling me requires field missing email and message and i put it in go check www.xerowebdesign.com/contact.html
heres my code for the html
<form method="post" action="contact.php?contact">
<table width="535" align="center"><tr><td class="text" align="center">
First Name: <input type="text" name="firstname" size="49"><br>
Last Name: <input type="text" name="lastname" size="49"><br>
Email Address: <input type="text" name="email" size="45">
<p align="left">   Message:</p>
<textarea name="comments" rows="6" cols="50">Please type your message to the candidate here.</textarea><br>
<p align="left"><input type="radio" name="vote" value="support" checked>I support Gary Cass for the GUHSD Governing Board.<br>
<input type="radio" name="vote" value="undecided">I am undecided.<br>
<input type="radio" name="vote" value="oppose">I do not support Gary Cass for the GUHSD Governing Board.<br></p>
<br><center><input type="submit" value="Submit Form">
<input type="reset" value="Reset Form"></center></td></tr></table>
</form>
my code for the php can u tell me whats wrong
<?
if ($QUERY_STRING == "contact") {
if ($firstname == "") {
echo "Required field missing, <b>FirstName</b>!<br>\n";
}
if ($lastname == "") {
echo "Required field missing, <b>LastName</b>!<br>\n";
}
if ($E-mail == "") {
echo "Required field missing, <b>E-Mail</b>!<br>\n";
}
if ($Message == "") {
echo "Required field missing, <b>Message</b>!<br>\n";
}
if ($firstname != "" AND $lastname != "" AND $email != "" AND $message != "") {
$receiver="rays136@cox.net";
$name="Name: $name";
$mail="E-mail: $email";
$message="Message: $message";
$date="Date: " . date("d-m-Y");
$time="Time: " . date("H:i:s");
mail("$receiver", "$titel", "$date $time $naam $mail $bericht", "From: $name
<$email>");
$name = ""; $email = ""; $titel = ""; $message = "";
echo "Your message has been send!";
}
}
?>