|
Posted by Chung Leong on 12/10/05 04:05
Justin Koivisto wrote:
>
> Basically, what I thought was any character that can't be used in a
> variable name was automagically converted to an underscore, but
> apparently "-" aren't any more.
Just to check my own sanity I downloaded a copy of PHP 3 to see if that
was the old behavior. It wasn't. Only '.' is converted.
The PHP changes dots to underscores because of the way <input
type="image"> elements behave. If the element has a name, then the
mouse pointer position would be submit as name.x and name.y. In the
days when register_globals was the primary way of accepting input, this
was necessary.
Navigation:
[Reply to this message]
|