Re: [PHP] W3C and PHP

2002-11-09 Thread Ernest E Vogelsinger
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=aboutsection=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=aboutsection=Linuxfont 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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] W3C and PHP

2002-11-09 Thread @ Edwin
Hello,

Ernest E Vogelsinger [EMAIL PROTECTED] wrote:
[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 ;-)

[/snip]

True. And amp; IS a valid html. In fact, changing  to amp; is the only
way I could pass the xhtml validator. So, it's not really a bug when the
validator complains about the  sign...

- E

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] W3C and PHP

2002-11-09 Thread Jens Lehmann
  ... a href=nav.php?page=aboutsection=Linuxfont color=#256 ...
  ^
Error: unknown entity section

 If this is really what the W3C validator tells you you should file a bug
 report, IMHO. Passing GET variables should be valid HTML ;-)

Usually entities start with  and end with ;. The entity section
doesn't end with ; and is not defined, that's why it's not valid.

Jens

PS: Be aware of not writing something like
header(Location: script.php?foo1=aamp;foo2=b);
or use $amp; in mails, which are send thorugh the PHP-
mail-function.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] W3C and PHP

2002-11-09 Thread Ernest E Vogelsinger
At 15:22 09.11.2002,  Edwin said:
[snip]
True. And amp; IS a valid html. In fact, changing  to amp; is the only
way I could pass the xhtml validator. So, it's not really a bug when the
validator complains about the  sign...
[snip] 

Right you are (and shame on me).
I just now doublechecked the RFC's - the '' character is reserved within
HTML, it always starts a character entity, either a named or a numbered one.

So: YOU are right, the W3C Validator was right, and I was simply WRONG -
apologies for any misinformation.


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php