Hi -

I want to make sure the output of my php code is valid HTML. I can't really use the online validator at http://validator.w3.org because my pages create output based on some session variables.

What is an easy way to check for valid code?

    sure there is, you run the code in your browser, then you view source and copy that and give it to the validator, since they are only checking your html/xhtml compliancy, they could care less what happens what your php code looks like, just what the browser renders

      That solution is what I'm already using. I was hoping somebody could come up with something better.

        thats probably as easy as you are gonna get it, unless someone else out there knows something i don't

          Write a Reply...