Reply to Re: $_POST + spaces and dots in keys

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация