in reply to Extract numbers.....

Meta discussion:
<a href="/f1/show?page=matchup&lid=206&week=8&mid1=2&mid2=8">
is actually broken HTML. It needs to be entitized as:
<a href="/f1/show?page=matchup&amp;lid=206&amp;week=8&amp;mid1=2&amp;m +id2=8">
Sure, some browsers error-correct that broken HTML and try to interpret what the original codes meant, but please don't write code that generates garbage like the first example. See the W3 HTML spec for confirmation and details.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Broken HTML (was Re: Extract numbers.....)
by Fastolfe (Vicar) on Nov 04, 2001 at 03:24 UTC
    And for the benefit of other readers, you can avert this issue entirely by avoiding & in your URL strings. If you're using a proper, robust CGI parameter parser (e.g. CGI.pm), this can be re-written as:
    <a href="/f1/show?page=matchup;lid=206;week=8;mid1=2;mid2=8">
    Much cleaner!