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; ?> 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. Link to comment https://forums.phpfreaks.com/topic/70086-session-fail-to-display/#findComment-352010 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.