I’m building a portfolio/freelancing site at the moment that is several pages long. I have specified all the pages as ‘XHTML Strict’ and have been working to get them all validated.
I’ve run into a problem now on the pages where I load in a contact form using PHP – the contact form PHP file throws up over 45 errors! If I change the DOCTYPE to ‘HTML Transitional’ this knocks the errors down to 10, and those errors just seem to be caused from switching from XHTML to HTML and are easily fixed.
So, my question is, is there a problem if 2 of my pages (homepage and contact page) are specified as HTML Transitional and the other pages are ‘XHTML Strict’? Or should I change everything over to HTML Transitional? Or should I work at getting the contact form PHP file adhering to Strict?
Here is a link to the PHP file that is causing me the problems: