xHTML transitional validation for &id= in a HREF!!

Discussion in 'HTML & Website Design' started by blueparukia, Mar 31, 2008.

  1. #1
    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
     
    blueparukia, Mar 31, 2008 IP
  2. mr_wonderful

    mr_wonderful Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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
     
    mr_wonderful, Mar 31, 2008 IP
  3. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #3
    Errr, what?
     
    blueparukia, Mar 31, 2008 IP
  4. mr_wonderful

    mr_wonderful Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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)
     
    mr_wonderful, Mar 31, 2008 IP
  5. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #5
    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
     
    blueparukia, Mar 31, 2008 IP
  6. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Was it doing that before?

    If not it appears that mod_rewrite is turned off. Make sure it is on!

    Just a suggestion.
     
    nicangeli, Mar 31, 2008 IP
  7. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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 &amp ;, it ignores the id and the =.
     
    Stomme poes, Mar 31, 2008 IP
  8. mr_wonderful

    mr_wonderful Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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).
     
    mr_wonderful, Mar 31, 2008 IP