This might well be a daft question, and may even be better suited in the javascript board, as the answer may lie in that direction...

I am looking for a way to add a link to a page that will enable someone to validate said page. The problem is, I am expecting a lot of pages to be accessible by members only. Hence the validator won't be able to access it.

The web developer toolbar extension for Firefox has an option to validate 'Local HTML', which is great, and I therefore assume this can be achieved (though admittedly that is probably a javascript solution).

However can this be done via some nifty php coding? or would I better off asking for help with a javascript solution?