php3-list | 199901
Date: 01/08/99
- Next message: Alessandro Grena: "[PHP3] I would create file in /etc/vmail..."
- Previous message: Harmony: "[PHP3] $HTTP_POST_VARS"
- In reply to: Harmony: "[PHP3] $HTTP_POST_VARS"
- Next in thread: Harmony: "Re: [PHP3] $HTTP_POST_VARS"
- Reply: Harmony: "Re: [PHP3] $HTTP_POST_VARS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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?
Because you are in a function and trying to access a global variable.
Stick a: "global $var_new_1" at the top of the function and it will work.
-Rasmus
-- 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: Alessandro Grena: "[PHP3] I would create file in /etc/vmail..."
- Previous message: Harmony: "[PHP3] $HTTP_POST_VARS"
- In reply to: Harmony: "[PHP3] $HTTP_POST_VARS"
- Next in thread: Harmony: "Re: [PHP3] $HTTP_POST_VARS"
- Reply: Harmony: "Re: [PHP3] $HTTP_POST_VARS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

