Alawi albaity wrote:
why the varible value(123) is not printed?
you need "global $test;" here
session_start();
session_register('test');
$test = 123;
}
function Logout(){
session_destroy();
}
if (is_login()){
and not here
Global $test;
session_start();
echo $test;
logout();
}else{
ma
I think it's to do with the scope of the variable.
It will work if you declare the variable as global within the make_login function.
Michael Egan
-Original Message-
From: Alawi albaity [mailto:alawi@;php4web.com]
Sent: 13 November 2002 08:13
To: PHPList
Subject: [PHP] what wro
why the varible value(123) is not printed?
tryagain
3 matches
Mail list logo