Page 1 of 1

Pb reload page

Posted: Fri Mar 04, 2005 11:25 am
by laurielle
Hello,
I have a new pb when I reload page.
I have a code which repeats itself when I valid my answers of a question and I pass to the next question.
But when I reload the page I want to reload the same page. I try many variable to test, but I don't know how differenciate when I click on Valid or when I reload.
Can you help me please.

Thanks.
Regards,
Laurielle

Posted: Fri Mar 04, 2005 12:02 pm
by Chris Corbyn
I don't understand the question? Maybe if you posted some code so we could see what you mean?

Do you mean each question answered, the page reloads to validate it?

Posted: Fri Mar 04, 2005 12:12 pm
by laurielle
For each question, I valid it clicking button and I pass to the next question, but when I reload the page I don't want to pass to the next question.

Posted: Fri Mar 04, 2005 1:35 pm
by laurielle
I would like to find a way to know when I reload the page or when I click on valid button.
Do you see what I mean?

Posted: Mon Mar 07, 2005 3:59 am
by Chris Corbyn
If you need to just remember where you were up to when the page is reloaded either set a $_GET variable or even better, use sessions.

http://us4.php.net/manual/en/ref.session.php