Richard Davey wrote:
Hi Jim,
Tuesday, June 19, 2007, 5:06:47 PM, you wrote:
DON'T USE SINGLE QUOTES IN YOUR NAME="" ATTRIBUTE
Hate to piss on your bonfire but a single quote is a perfectly valid
(if somewhat stupid choice of) character for inclusion in an array key.
Cheers,
Rich
in this case, it isn't a valid char.
Look at his output, you will see that the single quotes are being included in the actual value of
the submitted array.
So, in this case, they will mess with his comparison.
you'll be comparing
"'bob'"
not
"bob"
Look at the output a little closer...
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php