june_c21 Posted January 3, 2008 Share Posted January 3, 2008 hi, i just made a form for user to enter their information. the staff no will be store using session. how can i take the staff no and reuse in other page? It is using $_Get ? Quote Link to comment https://forums.phpfreaks.com/topic/84239-solved-session/ Share on other sites More sharing options...
mmarif4u Posted January 3, 2008 Share Posted January 3, 2008 Sessions are better than GET. Store in sessions and retrieve it on other pages. On 1st page store it like: <?php session_start(); $_SESSION['staffno']=$staffno; ?> On other pages: <?php session_start(); echo $_SESSION['staffno']; ?> Quote Link to comment https://forums.phpfreaks.com/topic/84239-solved-session/#findComment-429003 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.