|
Posted by Stephen Kay on 04/02/06 01:42
in article os6dnf-A8tscGbPZnZ2dnUVZ_vudnZ2d@comcast.com, Jerry Stuckle at
jstucklex@attglobal.net wrote on 4/1/06 8:45 AM:
> No, multiple <head> and <body> tags in a document are invalid.
>
> include() effectively just does a "copy and paste" of the new file into the
> existing one. So if both files have <body> tags then you end up with two
> <body>
> tags, as you found.
>
> And it's time to fire the idiots who places these tags in included files!
Related to this question, I am changing a previously "all HTML" site into a
"dynamically displayed by php" site. So I now have a template file with a
header, footer, navbar, etc., and when you call one of the old pages, Apache
redirects it into a dopage.php?p=page.html format, and the old page is read
in to a $content variable, and displayed inside the template. Pretty
straightforward.
However, since all of the old pages (and there's a lot of them) were HTML
standalones, they all have headers, html tags, and body tags.
At the moment, it seems to be working fine, even with the extra html,
header, and body tags displayed in the middle of the page, nested inside the
"real" html and body tags.
I assume this is a no-no, but what are the problems with just leaving it
this way? It seems to be working anyway. Otherwise, I assume the options are
to rewrite every single page to remove this stuff, or to try and remove it
procedurally after reading it into the $content variable.
Thanks,
--
Stephen Kay
Karma-Lab sk@karma-lab.NOSPAM.com
^^^^^^^
Navigation:
[Reply to this message]
|