Thanks for pointing me in the right direction.
You are quite right I hadn't thought of looking at the source output.
The reason that there is a second Doc declaration in the code comes from the php"include file" which I had not removed the Doc description from the top.
Thanks to all for the input.
Now sorted, will remember not to do that again.
Regards
Hamish
Drake Wilson-3 wrote:
(Resending to list since I made a mistake on the first Cc; sorry for
resultant screwiness.)
Quoth Hamish <gno@gavinoliver.co.uk>, on 2007-05-15 10:53:01 -0700:
> The URL is
http://osiris.sunderland.ac.uk/~ca8gol/updateExternal.php>
> I have several pages that have the same error message, all use php to return
> the results of a query on a MySQL db.
Did you actually look at the source of the output page?
"""
<!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> </h1>
<h1>Up Date External Examiners </h1>
<!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>Connection</title>
</head>
<body>
</body>
</html>
"""
Notice how you have another DOCTYPE declaration and entire <html />
inside the original <body /> tag. Don't do that.
---> Drake Wilson