Page 1 of 1

Badcode? HTML as includes?

Posted: Sun Nov 10, 2002 7:58 pm
by DidiahProd@hotmail.com
Hey
Just wondering?
Is it really a bad idea to include full html files? The result is nested <head> and <body> tags inside the main Body tag. For example

<head>
</head>
<body>
Server calls include("thisFile.html")
Results:
<head>
</head>
<body>
content
</body
</head>
</body>

could be

Posted: Mon Nov 11, 2002 1:26 am
by phpScott
It will generally be alright to have mutliple <head><body> tags but it isn't good form :cry:
If the pages that you are going to include are only included into pages that have all the right <html> tags then just store the other pages without all the <head> and <body> tags.

It will make looking at your code for errors much easier.

phpScott