Hi,
I got a doubt in PHP.
I am preparing an online quiz . In this quiz questions will be served to user one by one . Questions are stored in database, and each time when PHP script runs a random number is generated and question corresponding to that index is served to user.
Suppose user is to be served with 10 questions. He attempted first question, and now he is attempting second one, now when user is attempting second question i don't want the user to get back on previous page by pressing back button, means i don't want the user to see that question which he has already attempted again, by pressing BACK button. Suppose if user presses BACK button, then the previous page which may be stored in cache should not be displayed , instead of that if user presses BACK button then some error message should be displayed , like "THIS PAGE HAS BEEN EXPIRED , PLEASE PRESS FORWARD BUTTON TO CONTINUE THE QUIZ".
Could anyone tell me how can i implement this thing ?
I will prefer the the solution with some code segment.
I think i am able to explain my question clearly , in case i am not, then plz ask........
My EmailID =
devanshmittal163@yahoo.co.in