| Posted by Kurda Yon on 01/14/08 01:59 
On Jan 13, 8:46 pm, "Peter Pei" <yan...@telus.com> wrote:> 4 works if you did things right. cannot go more detailed than that unless
 > see some code.
 
 OK. In the first.php I have:
 session_start();
 session_register("ex");
 $ex = 2.0;
 ..........
 <form enctype="multipart/form-data" action="second.php" method="post">
 ......
 print "<input type='text' name='ex' value=\"$ex\">\n";
 ......
 </form>
 
 When I submit the form I put in the text field corresponding to $ex
 3.0.
 
 In the second.php I have:
 session_start();
 $_SESSION["ex"] = $ex;
 print "===> $txt_l_1";
 print "---> {$_SESSION["txt_l_1"]}";
 die();
 
 As the output I have:
 ===> 2.0
 ---> 2.0
 
 Not 3.0, as I expect.
  Navigation: [Reply to this message] |