You are here: Re: $_POST + spaces and dots in keys « PHP Programming Language « IT news, forums, messages
Re: $_POST + spaces and dots in keys

Posted by Dikkie Dik on 12/10/05 15:14

Chung Leong wrote:
> And the totally bogus reason given in the manual:
>
> http://fi.php.net/manual/en/language.variables.external.php#language.variables.external.dot-in-names
>
Why is that a bogus reason? If you use the register_globals way of
accessing the variables, there's no way to access a variable with a dot
in it. If youy access it via a superglobal, you explicitly give the name
as a string ($_POST['variable . rest']), but is used as a variable it reads:
$variable . rest
which is converted to
$variable . 'rest'
As the section after the dot is a bare string. So there is no way to
read $_POST['variable . rest'] as a normal (auto-registered)variable.

Best regards

 

Navigation:

[Reply to this 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

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