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

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.