chiaki*misu Posted August 19, 2009 Share Posted August 19, 2009 hye all im creating a session.. in my first page.. <?php session_start(); $_SESSION['name']; $_SESSION['id']; ?> name and id are my form names.. then the second page.. <?php session_start(); echo "name is : " .$_SESSION['name']; echo "id is : " .$_SESSION['id']; ?> so..what did i miss? and..when do i use ob_start and ob_flush? r they necessary for my session? Quote Link to comment Share on other sites More sharing options...
chiaki*misu Posted August 19, 2009 Author Share Posted August 19, 2009 and i put a submit button at my first page..is it correct? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted August 19, 2009 Share Posted August 19, 2009 $_SESSION['name']; $_SESSION['id']; Does not mean anything. You are not assigning anything to those variables. Quote Link to comment Share on other sites More sharing options...
chiaki*misu Posted August 19, 2009 Author Share Posted August 19, 2009 so ..it should be: $_SESSION['name']=name; $_SESSION['id']=id; is that right? 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.