![]() |
|
|
+ Search |
![]()
|
Dec 6th, 2000 18:06
Ben Munoz, Lloyd Parl,
The function only has access to locally defined variables and
parameters passed in. It therefore creates a new empty variable when
you are really trying to access a session variable that is already
defined.
I usually do this:
function print_x() {
global $x;// $x is your session variable, now you can use it
print ($x);
}