cgi.py and HTML 4.0 compliancy

Mark Pilgrim f8dy at my-deja.com
Tue Feb 6 11:39:45 EST 2001


In article <3A801BC6.6ED77FEA at stroeder.com>,
  Michael =?iso-8859-1?Q?Str=F6der?= <michael at stroeder.com> wrote:
> Juergen wrote:
> >
> > according to "validator.w3.org" the following URL is not HTML 4
> > compliant:
> >    <a href="mycgiscript.py?
firstParam=Bill&secondParam=Whitters">Some
> > Text</a>

Technically, this is not a valid URL.  The "&" must be written
as "&".  Try using the HTML validator at http://htmlhelp.com/.  I
have found that it gives more descriptive error messages than the w3
validator, including this (very common) error.

>
> Maybe HTML4 mandates to use a form.
>

This is not true; URLs can contain parameters, as long as they are
properly URL-encoded.

-M
--
You're smart; why haven't you learned Python yet?
http://diveintopython.org/


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list