> I've tried other ways but my problem still continues... I can not pass
> $login var out of the function.
>
> I don't have this problem in the two previous functions because I pass this
> variable as function argument, but this last function that doesn't have
> arguments I can't see the $login (even if is setup on the previous function
> as global). I don't know why I PHP doesn't allow to setup a $login as global
> to all functions (this will solve this problem).
It does. You simply have to declare in the function you wish to access
the global variable that you want the global variable by using the global
keyword in that function.
Please read the Variables Scope chapter in the manual:
http://php.net/manual/en/language.variables.scope.php
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]