cache troubles-i need to prevent history-back

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
chris12295
Forum Contributor
Posts: 113
Joined: Sun Jun 09, 2002 10:28 pm
Location: USA
Contact:

cache troubles-i need to prevent history-back

Post by chris12295 »

I made a search script and my users can move forward using my Next button and back using MY Back button.

How can i prevent visitors from being able to use the back button on their browser to display the previous page?
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post by Johnm »

So far, unfortunately, I have not seen anything that truly does this. With writing an engineering site I have found a few other ways to prevent problems caused by the user using the "Back" button. If you can define the problem better, I may have something written that can help.


Direwolf
chris12295
Forum Contributor
Posts: 113
Joined: Sun Jun 09, 2002 10:28 pm
Location: USA
Contact:

Post by chris12295 »

lets see, the whole script is one page called search2.php. this is the search process:
1. type keywords, form submitted to itself. $PHP_SELF
2. script retrieves any content related to the keywords from a database
3. the results are limited to 5 per page
4. their are links at the top that are: <--Prev 1 2 3 ... Next-->
5. clicking any of these does what u would expect

i need to prevent the user from using the back button when he/she loads search2.php and performs the searches and clicks the links at the top.
Post Reply