problem with include
Posted: Thu Mar 26, 2009 4:33 am
I am new to php. I have included two php pages in one page. The source of the resultant page looks like this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>USER HOME TCE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>USER HOME TCE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="gmenu.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="gmenu.js" ></script>
</head>
<body>
<table>
<tr><td>
<center><img src="images/banner.jpg" height="100px" width="900px"></center>
</td></tr>
<tr><td>
<script type="text/javascript" src="jsmenu.js"></script>
</td></tr>
</table>
</body>
</html>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Search home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100%" >
<tr>
<td width="29%" height="100%">
<iframe name="searchleft" src="searchleft.php" width="100%" scrolling="no" frameborder="0" height="500" ></iframe>
</td>
<td width="65%">
<iframe name="searchtask" src="searchres.php?start=1" width="100%" scrolling="no" frameborder="0" height="500" ></iframe>
</td>
</tr>
</table>
</body>
</html>
</body>
</html>
Will there be any problem due to the multiple <html><body> tag's in the same page ?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>USER HOME TCE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>USER HOME TCE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="gmenu.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="gmenu.js" ></script>
</head>
<body>
<table>
<tr><td>
<center><img src="images/banner.jpg" height="100px" width="900px"></center>
</td></tr>
<tr><td>
<script type="text/javascript" src="jsmenu.js"></script>
</td></tr>
</table>
</body>
</html>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Search home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100%" >
<tr>
<td width="29%" height="100%">
<iframe name="searchleft" src="searchleft.php" width="100%" scrolling="no" frameborder="0" height="500" ></iframe>
</td>
<td width="65%">
<iframe name="searchtask" src="searchres.php?start=1" width="100%" scrolling="no" frameborder="0" height="500" ></iframe>
</td>
</tr>
</table>
</body>
</html>
</body>
</html>
Will there be any problem due to the multiple <html><body> tag's in the same page ?