W3C home > Mailing lists > Public > www-validator@w3.org > February 2004

Re: Hmm? A problem with the WWW-Validator?

From: Saqib Ali <saqib@seagate.com>
Date: Thu, 5 Feb 2004 11:33:49 -0800 (PST)
To: Michael Dahl <michael@freeriders.dk>
Cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.55.0402051128380.23313@sjgcs1.stsj.seagate.com>

> URL = index.php?var1=true&var2=false
>
> $_GET would now contain
> Array( "var1" => "true", "var2" => "false")
>
> And if you try this example
>
> URL = index.php?var1=true;var2=false
>
> $_GET would now contain
> Array("var1" => "true;var2=false")

hmm just use &amp; instead of & , and everything should work fine. I use
the &amp; on my site @ http://www.xml-dev.com/blog

Here is what is happening:
'&' signifies the begining of of an entity (e.g. &nbsp; &amp; &gt; &lt;
etc), and your URL reads:

....&mode....

The validator think &mode is an entity, which is not true.


Saqib Ali
-------------
http://validate.sf.net <---- (X)HTML / DocBook Validator and Transformer
Received on Thursday, 5 February 2004 14:49:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:10 GMT