Reply to Re: How to trim parameters and give them a prefix?

Your name:

Reply:


Posted by Jerry Stuckle on 05/22/07 17:19

damezumari wrote:
> Thanks for all the replies!
>
> As far as I can gather from the replies and my new testing:
>
> This does not trim the post variables:
> foreach($_POST as $varname => $value) {$varname = trim($value);} does
> not trim the post variables.
>
> but this does:
> foreach($_POST as $varname => $value) {$_POST[$varname] =
> trim($value);}
>
> However, this trimming has no effect on the variables you get from:
> import_request_variables('gp', 'p_');
>
> So, the question remains, if I want to use global variables how do I
> trim them? I can of course do it by hand one at a time, but is there
> no other way?
>

Why do you need import_request_variables(), anyway? Everything is in
the superglobals $_GET, $_POST or $_COOKIE.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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