erideth Posted July 23, 2007 Share Posted July 23, 2007 I am coding a site where i take customer's information on the first page they visit but i don't want to really do anything with that information for a couple of pages. I'm pretty sure that this would have something to do with session variables but i'm not sure if this is correct or really how i would call them in the page i want to use. Thanks Quote Link to comment Share on other sites More sharing options...
Caesar Posted July 23, 2007 Share Posted July 23, 2007 You can use sessions or cookies. Or both even. To call them any time while they're on your site, you simply initialize the session on every page you want to use them on... <?php session_start(); echo'<div class="login_status">You are logged in as '.$_SESSION['username'].'</div>'; ?> Quote Link to comment Share on other sites More sharing options...
trq Posted July 23, 2007 Share Posted July 23, 2007 Yes. You would use session variables. There is a link in my signiture to a book, in that book is a whole chapter dedicated to the use of sessions. Quote Link to comment Share on other sites More sharing options...
erideth Posted July 23, 2007 Author Share Posted July 23, 2007 that helped a lot thanks 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.