From: Peter H. <ph...@ma...> - 2007-01-24 21:30:49
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Jan 24, 2007 at 02:08:41PM -0600, Sarah Gray wrote: > Does anyone know why it is that a form element named using dots is > transliterated to a form element named using underscores when it is > posted using PHP [4.4.4 and 4.3.2, at least]? It's as if php runs a > pre-filter preg_replace on the names of input fields before outputting > them to the $_POST array. That's pretty much exactly what happens. Because of register_globals, the keys have to be valid variable names. $name.with.dots is invalid, but $name_with_dots is OK. This alteration was carried over into $_POST and the others. - -- Peter Harkins - http://push.cx - http://cambrianhouse.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: If you don't know what this is, it's OK to ignore it. iD8DBQFFt9ABa6PWv6+ALKoRAgpQAJ9gsZlRWOXWvQZ7fwVbXknKoUQMcwCdH8ZH kLqCrp8XXvL6J1X0fYkm810= =GF1M -----END PGP SIGNATURE----- |