After I register variable in session :
session_start() ;
session_registe r($var);
new page opens
include("regist er2.php");
At the page I fill some forms and send variables from forms to another
page - with GET method.
And now at the 3rd page I need to receive a variable from the session
but it's empty. Interesing is that on the second page receiving $var
from session works without any complications just by using:
session_start() ;
print ($var);
I have no idea what I did wrong and I would be grateful for advices,
maybe there is some other method of posting variables from "1st page
to 3rd". Thanks
session_start() ;
session_registe r($var);
new page opens
include("regist er2.php");
At the page I fill some forms and send variables from forms to another
page - with GET method.
And now at the 3rd page I need to receive a variable from the session
but it's empty. Interesing is that on the second page receiving $var
from session works without any complications just by using:
session_start() ;
print ($var);
I have no idea what I did wrong and I would be grateful for advices,
maybe there is some other method of posting variables from "1st page
to 3rd". Thanks
Comment