Re: W3C and PHP

From: Date: Sat, 09 Nov 2002 14:02:50 +0000
Subject: Re: W3C and PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-123576@lists.php.net to get a copy of this message
At 07:12 09.11.2002, conbud said: --------------------[snip]-------------------- >Hi, >In some of my URLs I have to pass variables through the URL like >nav.php?page=about&section=linux - when i do this and then scan my site for >W3C validation I get this >Line 40, column 28: > ... <a href="nav.php?page=about&section=Linux"><font color="#256 > ... > ^ >Error: unknown entity "section" --------------------[snip]-------------------- If this is really what the W3C validator tells you you should file a bug report, IMHO. Passing GET variables should be valid HTML ;-) But I rather believe your HREF contains a closing quote somewhere before the parameters (maybe in any parameter value). To avoid this, use "urlencode()" vor all parameter values you use to construct a link with. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#123576) next »