How come that I cannot store a varible in the session when I do this
from within another object? 

This is my code: 

class MyClass { 
   function MyClass($state) { 
      if($state == "page2") { 
         print("[" . $foo . "]"); 
      } else { 
         $foo = "Hello World!"; 
         print("<a href=\"?state=page2\">Click here</a>\n"); 

new MyClass($state); 


PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to