Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] $HTTP_POST_VARS From: Rasmus Lerdorf (rasmus <email protected>)
Date: 01/08/99

> 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>