RE: [PHP] $_POST var name char conversion "." to "_"
| From: | ROBERT MCPEAK | Date: | Wed, 10 Dec 2003 16:41:43 +0000 |
| Subject: | RE: [PHP] $_POST var name char conversion "." to "_" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-172354@lists.php.net to get a copy of this message | ||
Thanks all. I guessed that it was something built in to PHP, although I was surprised when I
couldn't find a good explanation in the usually excellent docs. -Bob Mc
>>> "Ford, Mike [LSS]" <M.Ford@lmu.ac.uk> 12/10/03 11:29AM
>>> >>>
On 10 December 2003 16:19, ROBERT MCPEAK contributed these pearls of wisdom:
> Has anybody seen the seemingly automatic and unexplained
> conversion of the character "." to "_" in $_POST var names?
Yes. It's PHP automagic by PHP.
> I've tested several ways, with and without PHP, and I've dug
> around in the HTML specs and can't find a good explanation.
> Can anybody shed some light on this? Can this be overridden?
It's explained at
http://uk2.php.net/manual/en/language.variables.external.php#language.variab
les.external.dot-in-names, and no, it can't be overridden.
Cheers!
Mike
--
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php