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 Share on other sites More sharing options...
Jessica Posted September 21, 2007 Share Posted September 21, 2007 Please do not start a new topic for the same problem. Someone already addressed your issue on the other thread. Quote Link to comment 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.