1.php?                                            2.php
session_start();                                 session_start();
..........                                                 ..........
$_SESSION['a'] =$a;                            echo $_SESSION['a']; 
$_SESSION['b'] =$b;                             echo $_SESSION['b']; 
header("location: 2.php");

there is an warning: undefined index a ,b.........


after  change 

1.php                           2.php
session_start();                                 session_start();
..........                                                 ..........
$_SESSION['a'] =$a;                            echo $_SESSION['a']; 
$_SESSION['b'] =$b;                             echo $_SESSION['b']; 
<a href='2.php' >go on </a>

it works well?
why?


thanks!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to