Hello all- I'm having a problem validating a page and was hoping someone could enlighten me on the problem.
It has to do with the "dynamic" links on the site. Here's how the page code looks on my developer end: <a href="/cart.lasso?product_id=[encode_url($a->get(8))]&prod_id=[encode_url($a->get(1))]&cat_name=[encode_url($a->get(9))]&action=add"> Before adding the encode tags(below), there was blank space in the href, although it was converted to be encoded for URL's when you clicked on it just like any other href.. Here's how the link currently looks in source code on the page, as well as in the browsers URL 9and what the validator sees): <a href="/cart.lasso?product_id=T3517%20BLACKCHROME&prod_id=14887&cat_name=&action=add"> What I can't figure out is how it SHOULD be! When I run the page through validator.w3.org, I get errors for every link like this. Here is the error I get: ------------------------------ The Warning: Line 1466, Column 78: cannot generate system identifier for general entity "action" (I also get this for "cat_id and the others in the link as well) …cart.lasso?product_id=T3517%20BLACKCHROME&prod_id=14887&cat_name=0&action=add"> ✉ An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs". Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters. If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem. Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed. ------------------------- And the error: ------------------------- Line 1466, Column 78: general entity "action" not defined and no default entity …cart.lasso?product_id=T3517%20BLACKCHROME&prod_id=14887&cat_name=0&action=add"> ✉ This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details. Can someone interpret this error for me and help me out in getting this fixed so it will validate? These errors alone account for about 60 errors from the validator! Thanks! --------------------------- James Sheffer, The HigherPowered Team! [email protected] [email protected] Web Design & Development http://www.higherpowered.com phone: 469-256-0268 "We help businesses succeed on the web!" ------------------------------------------- ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
