+ Reply to Thread
Results 1 to 4 of 4

Thread: HTML markup validation problem...

  1. #1
    learning_brain is offline x10 Sophmore learning_brain is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    UK, Midlands
    Posts
    170

    HTML markup validation problem...

    Hi all

    When trying to validate my site, I am getting errors and warnings relating to the dynamically generated links - specifically with multiple URL parameters.

    http://validator.w3.org/check?uri=ww...Inline&group=0

    I have looked through the problem which is to do with the "&" and "=" symbols... which are needed???? This isn't meant to be a &amp symbol!

    Confused and hoping someone can help.

    Page is www.qualityimagesearch.com/index.php

  2. #2
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: HTML markup validation problem...

    Read this that it links you to, it tells you specifically that URLs should be escaped to ensure mistakes are not made in interpretation. So, basically just change the & symbols to & and those errors should be resolved.

  3. #3
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: HTML markup validation problem...

    Note that & in an href attribute will be converted to a literal ampersand by the browser when the link is clicked (or when a JavaScript GET request is made), so you won't be changing the link by using &. (If, on the other hand, you URL-enocde the ampersand, it will remain escaped until it gets to the server. The fine art of multi-level escapes sent more than a few developers to the asylum back in the frameset days :-) )
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  4. #4
    learning_brain is offline x10 Sophmore learning_brain is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    UK, Midlands
    Posts
    170

    Re: HTML markup validation problem...

    Perfect - many thanks

    I had a section in there generating the links which I've corrected...

    PHP Code:
        $queryString_fulltext_images "&" htmlentities(implode("&"$newParams));
      }
    }
    $queryString_fulltext_images sprintf("&totalResults=%d%s"$totalResults$queryString_fulltext_images); 
    Job done - 100% valid!

    Thanks all!

+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 03-15-2010, 11:23 AM
  2. I got a problem with validation of my site...
    By ciril tomy in forum Programming Help
    Replies: 2
    Last Post: 11-23-2009, 11:53 AM
  3. Custom Markup Language
    By knightcon in forum Programming Help
    Replies: 4
    Last Post: 08-16-2008, 11:21 PM
  4. Selling HTML Layout! (No validation errors!)
    By JuniorD in forum The Marketplace
    Replies: 0
    Last Post: 07-31-2008, 09:31 PM
  5. My Markup Validator
    By nonsensep in forum Scripts & 3rd Party Apps
    Replies: 33
    Last Post: 11-08-2007, 07:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers