Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.