|
Posted by jmark on 05/21/07 19:28
On May 21, 12:17 pm, damezumari <jannordgr...@gmail.com> wrote:
> // trim the parameters
> foreach($_POST as $varname => $value) {$varname = trim($value);}
>
> // give them $p_ prefix
> import_request_variables('gp', 'p_');
>
> When I do the above the parameters are not trimmed in the end.
>
> Example:
>
> $lastname = ' ' is trimmed to $lastname = '', but $p_lastname = ' '
As per brian's comment here
http://us2.php.net/import_request_variables
import_request_varaibles are independent on $_POST.
By the way what is the importance of using this function when $_POST
is global?
Navigation:
[Reply to this message]
|