inspire Posted September 21, 2007 Share Posted September 21, 2007 Friend....I am using php version 4.0.5 in windows . My problem is i cannot pass the session from the page1.php to page2.php. note: i am using $HTTP_SESSION_VARS because the php ver <4.1 not support $_SESSION. So how to solve the problem.....pls help ??? :'( page1.php <?php session_start(); ?> <? //session_register('xyz'); $HTTP_SESSION_VARS['name']="xyz"; ?> <html> <head> <form action="page2.php" method="post"> <body> <input type="Submit" name="login" value="login"> <input type="input" name="login" > </head> </form> </body></html> page2.php <?php session_start(); //echo $HTTP_SESSION_VARS['name']; $name=$HTTP_POST_VARS['login']; //echo $login; ?> Quote Link to comment https://forums.phpfreaks.com/topic/70086-session-fail-to-display/ Share on other sites More sharing options...
cooldude832 Posted September 21, 2007 Share Posted September 21, 2007 well when u comment it out of course it ain't gonna work. Quote Link to comment https://forums.phpfreaks.com/topic/70086-session-fail-to-display/#findComment-352010 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.