keeping data when refreshing web page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jaco
Forum Newbie
Posts: 13
Joined: Mon Jun 29, 2009 6:40 pm

keeping data when refreshing web page

Post by jaco »

Hello everyone, I know this is probably an oft asked question but I have been struggling with it for quite some time. I have a web page that has select boxes for user input and of course select buttons that send the data to the server via url. I want the user to have the same page returned with new information based on his selection, see:

http://www.musiconguitar.com/chords.php

Everything works fine except when you use the REFRESH or BACK button of the browser, this causes the data to be lost.

What is the best way to solve this problem?

Cheers,

Jacques
internet-solution
Forum Contributor
Posts: 220
Joined: Thu May 27, 2010 6:27 am
Location: UK

Re: keeping data when refreshing web page

Post by internet-solution »

Last edited by internet-solution on Mon Jul 19, 2010 8:20 am, edited 1 time in total.
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Re: keeping data when refreshing web page

Post by liljester »

try $_SESSION or $_COOKIE variables
Post Reply