Re: [PHP] what wrong in this code ?

2002-11-13 Thread Marek Kilimajer
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

RE: [PHP] what wrong in this code ?[Scanned]

2002-11-13 Thread Michael Egan
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

[PHP] what wrong in this code ?

2002-11-13 Thread Alawi albaity
why the varible value(123) is not printed? tryagain