| Posted by Kurda Yon on 01/14/08 01:24 
I am wandering which way to assign a value to a session variableexist. Which of the following examples will work.
 
 Example #1:
 session_start();
 session_register("ex");
 $ex = 2.0;
 
 Example #2:
 In first.php:
 session_start();
 session_register("ex");
 In second.php:
 $ex = 2.0;
 
 Example #3:
 In first.php:
 session_start();
 session_register("ex");
 Load second.php?ex=2.0
 
 Example #4:
 In first.php:
 session_start();
 session_register("ex");
 Go to the second.php via submission of the form on the first.php,
 which contains form-variable $ex.
 
 Example #4 seams not to work? Is it expectable?
  Navigation: [Reply to this message] |