you have to have the variable you register (in both ways) global.
so no matter how you call the function the variable must be defined global.
mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 25, 2001 1:16 AM
To: PHP List
Subject: [PHP] session_register in function
The variable I register
I had this same exact problem just today. It all stems from the variable
namespace, I think
A similar code 'snippet' is shown below. I just made it up, but I think it
illustrates my point.
Good luck with whatever you are doing,
Jeff Lacy
""Jon Rosenberg"" <[EMAIL PROTECTED]> wrote in
24, 2001 11:16 AM
Subject: [PHP] session_register in function
> The variable I register before the function becomes available in the
session
> to other pages...the variable I register inside the function are not
> accessible in the session to ohter pages. Is this normal? How can I work
>
The variable I register before the function becomes available in the session
to other pages...the variable I register inside the function are not
accessible in the session to ohter pages. Is this normal? How can I work
around this? Thanks! PHP4.0.4pl1 on Linux.
sample code:
--
PHP Genera
4 matches
Mail list logo