Ok, so I have a site (powered by that crappy Zen Cart System). Well today the server crashed onm the site, and it has to be restarted, and before where the code was invalid I intend on making it valid, now the links to get to a page, unfortunately, go like: Of course, the validator loves it, particularly the: page&id=2 part. The errors/warnings: While it would be almost impossible to make this system semantic, I would like to have it valid at least. Cheers, BP
Result: 17 errors / 1 warning line 1 - Error: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>" line 7 column 23 - Error: there is no attribute "FRAMESPACING" line 7 column 34 - Error: there is no attribute "BORDER" line 7 column 54 - Error: there is no attribute "FRAMEBORDER" line 7 column 63 - Error: there is no attribute "COLS" line 7 column 72 - Error: element "FRAMESET" undefined line 8 column 12 - Error: there is no attribute "NAME" line 8 column 34 - Error: there is no attribute "SCROLLING" line 8 column 48 - Error: "NORESIZE" is not a member of a group specified for any attribute line 8 column 52 - Error: there is no attribute "SRC" line 8 column 70 - Error: there is no attribute "TARGET" line 8 column 82 - Error: element "FRAME" undefined line 9 column 85 - Error: element "FRAME" undefined line 10 column 74 - Warning: cannot generate system identifier for general entity "domainname" line 10 column 74 - Error: general entity "domainname" not defined and no default entity line 10 column 84 - Error: reference to entity "domainname" for which no system identifier could be generated line 10 column 73 - Info: entity was defined here line 10 column 113 - Error: element "FRAME" undefined line 12 column 17 - Error: end tag for "HTML" which is not finished
oh, whoops, I clicked that link and validated it, thought it was real. haha. If you need to use one of those online form validators, the only thing you could do is program default values for "main_page" and "id" into your page so that you can send the page to validator without the querystring but with the values embedded. (if you know php or whatever) or you could simply download one of the many browser plug-ins that have built in validators which will validate any page you are browsing. (That's what I would do)
I use Opera, got it in by default As for redoing the PHP, I just don't care that much to change everything to $_POST; Thanks anyway, BP
Was it doing that before? If not it appears that mod_rewrite is turned off. Make sure it is on! Just a suggestion.
I don't understand you. Are you saying that before, the links didn't have the &id=5? Cause you already knew the & is what triggers the validator to puke on the id and the =, right? That one sure tripped me up the first time I saw it. When the validator can't see the & because it's been changed to & ;, it ignores the id and the =.
Maybe this will help: If you're on MS IIS, you could also use a free and simple rewriter like URL Replacer: http://www.motobit.com/help/url-replacer-rewriter/iis-mod-rewrite.asp it'll allow you to change all the URLS in your code to this format: http://sitename.net/store/index.php/main_page-page/id-2 but still be interpreted by your server as: http://sitename.net/store/index.php?main_page=page&id=2 There's plenty of other URL rewriters out there for other systems too (mod_rewrite was mentioned).