Cless Posted July 16, 2007 Share Posted July 16, 2007 Hello. What would be the best way to remember a location on a map or something? Think of an RPG. When you come back, your location should be the same as when you logged off. Is there a possible way to do this? I'm betting Sessions and Cookies would not work, as they are only temporary. Thanks! Quote Link to comment Share on other sites More sharing options...
trq Posted July 16, 2007 Share Posted July 16, 2007 Cookies would work fine. Are you talking about storing the last page visited or something else? Quote Link to comment Share on other sites More sharing options...
Cless Posted July 16, 2007 Author Share Posted July 16, 2007 I mean, store the location of an area so no one can delete it. Cookies are deleted easy. >_< Um, remember a certain page. This is hard to explain... Umm, on a certain page, if they go back, they will be on the same part of that script... sort of. Say, you have a script. If you click a button, it goes to a certain place of the script that you can only see if you click that button. If you go back to that page, you will be in that same part of the script.. It's like register.php. You have the variables defined at the top, if the form is submitted, refresh, set the variable, and it will say the confirmation message. That will only allow you to view the confirmation message if you clicked the button. Man, that was one of the most difficult things I've ever explained. ;P 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.