MarkR wrote:You can't use HTML validation on a PHP file, because it's impossible to know in advance every possible HTML file it could produce.
Your best bet would be to use a client-side validator for example, the Firefox extension "HTML Validator" to check the pages after they're generated during system testing.
Mark
I've seen many website with pages having ".php" extention although has "XHTML" validation image. How do they validate their page ???
How about, if I get rid of all the "include" tags & save file with ".html" extention & then try validating it. Once I sort all the errors out, I would save my file back again with ".php" extention & then display "XHTML validator" graphic (http://party.traas.org/images/xhtml11.png) on my website.
Would that be right thing to do ???