tanker456 Posted March 12, 2013 Share Posted March 12, 2013 I looked onlilne and found this forum and hopefully someone here can help. I'm new to PHP and MySQL, but been programming for over 15 years in VB / .NET, so I do understand PHP and can learn quickly. I also know CSS and HTML and javascript, so I think I'm covered when it comes to client side development. I have a new project that I need to code in PHP using Codeigniter as the framework. I took the last 3 months learning Codeigniter, and I have to say that I really like it. Anyway, one of the things I need is to save information of what the user has chosen and have this be remembered from page to page. There's a session object in Codeigniter that seems the way to go, but I just recently read about globals. Can I save things in globals for this purpose? Or is there some other "mechanism" I can use in PHP? Thank you very much for any response. -Tanker456 Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 12, 2013 Share Posted March 12, 2013 Not sure exactly what you are referring to when you say "globals" since that can mean a few different things. I'm guessing in this context you are referring to one of the superglobal arrays such as $_POST and $_GET. While you *could* use them to transfer information from page to page, it would not be a good solution. You definitely want to go with session data. 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.