Page 1 of 1

Blocking access to a previous page using PHP

Posted: Mon Aug 07, 2006 1:24 pm
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.

Posted: Mon Aug 07, 2006 1:48 pm
by Shendemiar
Just keep track in users session file, what questions has allready been answered, and do not accept retires.