php3-list | 199901
Date: 01/08/99
- Next message: Rasmus Lerdorf: "Re: [PHP3] $HTTP_POST_VARS"
- Previous message: Chad Cunningham: "[PHP3] web space donation"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] $HTTP_POST_VARS"
- Reply: Rasmus Lerdorf: "Re: [PHP3] $HTTP_POST_VARS"
- Reply: Daniel Lashua: "Re: [PHP3] $HTTP_POST_VARS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I want to pass all values of POST variables to a function
before further action.
i.e. my_function filter ($in_str) {
$in_str = trim(ereg_replace....(.... ($in_str)));
}
$var_new_1 = my_function($var_old_1);
$var_new_2 = my_function($var_old_2);
$var_new_3 = my_function($var_old_3);
..
I know $HTTP_POST_VARS (thanks to people who gave me hints).
array_walk($HTTP_POST_VARS,'filter');
The values of changed variables work only when called as:
$HTTP_POST_VARS[var_new_1];
but incorrect when called directly as $var_new_1
WHY?
What's the proper way for doing what I intended?
Thanks a lot!
Regards,
harmony
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev <email protected>
- Next message: Rasmus Lerdorf: "Re: [PHP3] $HTTP_POST_VARS"
- Previous message: Chad Cunningham: "[PHP3] web space donation"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] $HTTP_POST_VARS"
- Reply: Rasmus Lerdorf: "Re: [PHP3] $HTTP_POST_VARS"
- Reply: Daniel Lashua: "Re: [PHP3] $HTTP_POST_VARS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

