Zitat von Jani Taskinen <[EMAIL PROTECTED]>:

>     You're only supposed to change it in your HTML..NOT in the
>     browser's query line..

As well as in header() calls (as already stated in this thread) and in
javascript calls: document.location.href = 'foo.php?bar=1&amp;var=2' won't
work either.

> 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&amp;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 &amp;myvar=2 ?
> >I think the W3C validator is broken/wrong in this respect, and wanted to
> >know what other folks think about it.  

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft

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

Reply via email to