golbasche Posted July 30, 2007 Share Posted July 30, 2007 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 Quote Link to comment Share on other sites More sharing options...
golbasche Posted July 30, 2007 Author Share Posted July 30, 2007 Ooops my problem won't be shown from the link above- you'd have to go to http://golbasche.dnsdojo.com/site3/search.php, press the submit button for the form and then try to validate to recreate my problem Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted July 30, 2007 Share Posted July 30, 2007 looks like you have php short tags on in your ph.ini file... Quote Link to comment Share on other sites More sharing options...
golbasche Posted July 30, 2007 Author Share Posted July 30, 2007 when you mentioned short tags, i got excited and figured you must be right I checked, they are turned off in the php.ini file So I'm still lost, but thanks for the tip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.