Blocking access to a previous page using PHP

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
ucichem
Forum Newbie
Posts: 8
Joined: Tue Jul 25, 2006 1:08 pm

Blocking access to a previous page using PHP

Post by ucichem »

Is there any way to block users from returning to a certain page (or to certain information on a page) by clicking the 'Back' button (the previous page button)?

I am creating an online quiz and want to prevent users from answering a question, getting it wrong, then hitting the back button and trying again.  The users are picking an answer from a series of radio buttons, then clicking submit. Users are re-directed using php conditionals and I want to keep people from answering the same multiple choice question more than once.

I am not familiar with MySql at all. I don't have it installed on my system. Hopefully any help you provide can take that into consideration.

Thanks.
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

Just keep track in users session file, what questions has allready been answered, and do not accept retires.
Post Reply