W3C home > Mailing lists > Public > www-validator@w3.org > May 2007

Transitional validation Problem

From: Hamish <gno@gavinoliver.co.uk>
Date: Tue, 15 May 2007 03:34:28 -0700 (PDT)
Message-ID: <10620448.post@talk.nabble.com>
To: www-validator@w3.org

Hi All, 
Newbie at validation,
I have been trying to work out what's wrong with the following Document type
which is throwing errors on a number of pages.
Any ideas much appreciated 
Hamish

"DOCTYPE" declaration not allowed in instance.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.or
and
document type does not allow element "html" here.
<html xmlns="http://www.w3.org/1999/xhtml">
 from the following code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Up Date External Examiners</title>
<link href="Course_Buttons/UniStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center><h1>&nbsp;</h1>
<h1>Up Date External Examiners </h1>
<?php
ob_start();
include ("opendbincludeA.php");
$result=mysql_query("SELECT * FROM E_Examiner ORDER BY  SName");

while ($rec = mysql_fetch_array($result))
	{
	echo("ID Number: " . $rec["ID_Number"] . "<br />");
	echo("Name: " . $rec["Title"]. " " . $rec ["FirstName"] . " "
..$rec["SName"]. " " ."<br />");
	echo("email Address: " . $rec["emailAddress"] . "<br />");
	echo("Te No: " . $rec["TelNo"] . "<br />");
	echo("Company Name: " . $rec["CompanyName"] . "<br />");
	echo("Address1: " . $rec["CStreet"] . "<br />");
	echo("Address2: " . $rec["CArea"] . "<br />");
	echo("Town: " . $rec["CTown"] . "<br />");
	echo("County: " . $rec["CCounty"] . "<br />");
	echo("Post Code: " . $rec["CPostCode"] . "<br />");
	echo ' EEupdate1.php?ID_Number='.$rec['ID_Number'].' Update <hr />' ;
	
	}
ob_end_flush();
?>
</center>
</body>
</html>


-- 
View this message in context: http://www.nabble.com/Transitional-validation-Problem-tf3757709.html#a10620448
Sent from the w3.org - www-validator mailing list archive at Nabble.com.
Received on Tuesday, 15 May 2007 13:18:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:24 GMT