|
Posted by damezumari on 05/22/07 16:14
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?
Navigation:
[Reply to this message]
|