Jump to content

Back button


mmarif4u

Recommended Posts

Hi.

 

I have a page in my site where a user give an exam, The problem is that

If he wrong answer the q and then he know that the correct answer is C,

So he go back and come again to that page and mark C as a correct answer.

 

I dont want that from users.

I want that if he or she click on the back button Then a message will comeout that save ur score.

OR

If he or she click the back button of the browser the page remain the same.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/54223-back-button/
Share on other sites

Yep they sign in then select a set of q's and q are all multiple choice like A:True B:False C:Non of these

D: Wrong.

So it mean that every q has 4 answers. Now if the user want to mark 2nd q and he did not mark 1st

then an error pop up, this part is ok. But the problem is the back button.

 

I want that for example he answer 4 q out of 20, 2 answer are wrong 2 are correct now if he want to go back and come again to mark the wrong one as correct.

If he click the browser back button a pop up msg appear "that u have to save ur score to go back."

And in pop up only one button which will be ok, when he click ok data is saved to db and page go one step back.

 

 

Link to comment
https://forums.phpfreaks.com/topic/54223-back-button/#findComment-268097
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.