RE: [PHP] session_register in function

2001-02-25 Thread PHPBeginner.com
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

Re: [PHP] session_register in function

2001-02-24 Thread Jeff Lacy
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

[PHP] session_register in function - addendum

2001-02-24 Thread Jon Rosenberg
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 >

[PHP] session_register in function

2001-02-24 Thread Jon Rosenberg
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