Jump to content

xml/xhtml web validator incorrectly parses php page


golbasche

Recommended Posts

My xhtml 1.1 page I made passes validation by direct input on the validator page.  However, when I try to validate it by URL it fails.  The problem is that the validator parses some php inside an else/if statement.  It parses both the code inside the “if” and the code inside the “else”.  Since, on my page, PHP will give an error if the else statement is run with an element in the POST array, my server outputs the following:

 

<b>Fatal error</b>: Call to a member function updateParams() on a non-object in <b>D:\Web\WebServer\Apache2\htdocs\site3\process_search2.php</b> on line <b>35</b><br />.

 

 

Of course, this is not valid xhtml.  But I was hoping the xml parser wouldn’t parse this.  Is there a way to fix this ?

 

 

If you could help, that would be very very appreciated.

 

the page - (p.s. my ISP is a little iffy)

http://golbasche.dnsdojo.com/site3/process_search2.php

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.