You are here: Re: How to trim parameters and give them a prefix? « PHP Programming Language « IT news, forums, messages
Re: How to trim parameters and give them a prefix?

Posted by jmark on 05/21/07 20:41

On May 21, 2:02 pm, "Thomas Mlynarczyk" <tho...@mlynarczyk-
webdesign.de> wrote:
> Also sprach damezumari:
>
> > // trim the parameters
> > foreach($_POST as $varname => $value) {$varname = trim($value);}
>
> foreach ( $_POST as $varname => $value ) { $_POST[$varname] = trim(
> $value ); }
>
> > import_request_variables('gp', 'p_');
>
> Why? It's simpler, cleaner and safer to work with $_GET / $_POST directly.
>
> Greetings,
> Thomas

I may agree with simplicity and cleanliness to some extend but how is
it safer?

 

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

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