There is a toggle in your php.ini file you can use to switch this
behaviour of PHP:

arg_separator.output = "&"

-Rasmus

On 22 Jul 2002, Walter A. Boring IV wrote:

> Howdy,
>   This may be a tad off topic, but it is related to how php deals with
> building the $_GET superglobal w/ query string vars.
>
> According to the W3C HTML validator, it is illegal to build a query
> string for a url such as
>
> foo.php?bar=1&myvar=2
>              ^^^^^^^^
>
> They say you HAVE to use
> foo.php?bar=1&myvar=2
>              ^^^^^^^^^^^^
>
> in php's case it builds
> $_GET["bar"] = 1;
> $_GET["amp;myvar"] = 2;
>
> I don't know of ANYONE on the planet that builds query string vars in
> this way. Unless you do, your html pages will not validate through the
> W3C validator.
>
> The official W3c spec explanation is at
> http://www.htmlhelp.com/tools/validator/problems.html#amp
>
>
> I think changing this could potentially break many sites.
> Does anyone know what other web languages do with &myvar=2 ?
> I think the W3C validator is broken/wrong in this respect, and wanted to
> know what other folks think about it.
>
>
> Walt
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to