Pb reload 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
laurielle
Forum Newbie
Posts: 8
Joined: Thu Mar 03, 2005 10:55 am
Location: Canada, Montreal, QC

Pb reload page

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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?
laurielle
Forum Newbie
Posts: 8
Joined: Thu Mar 03, 2005 10:55 am
Location: Canada, Montreal, QC

Post 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.
laurielle
Forum Newbie
Posts: 8
Joined: Thu Mar 03, 2005 10:55 am
Location: Canada, Montreal, QC

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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
Post Reply