Forum Moderators: open
<?php
require_once('form/formmailer.php');
?>
I cleaned the code so it could be posted and this validates.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Contact Us</title>
<META NAME="keywords" CONTENT="stuff">
<META NAME="description" CONTENT="a form for contact us">
</head>
<body>
<div id="top"><a href="index.php"><img src="images/banner.jpg" width="600" height="150" border="none" alt="Logo"></a>
</div>
<div id="left">
<div>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="contact-us">Contact Us</a></li>
</ul>
</div>
</div>
<div class="content">
<h1>
Contact Us
</h1>
<p>
Use the contact form below.
</p>
</div>
I thought that the Javascript used to check the form fields might be the culprit, but I can't see how.
The validation result of the snippet you posted is not an error. It is a little-known fact that </body> and </html> are optional in HTML (but required in XHTML).
Did you look at "view source" on the validator output? I wonder if the there's something there, but it's hidden because though valid it's completely different from what you expect, though I would think that the validator would be set up to expect weird output.