I can't just create a link on the last page back to the first page. Because if the user hits the back button on the browser they end up on page 2. Which can't happen. Once you are on the last page the user can't by anyway get back to page 2, unless they start over on page 1.
What I am planning on doing is passing the variables using the POST method. Then have a hidden variable pass with the pages. If this hidden variable is missing then redirect the user back to page 1. Thus if I can get page 2 to be cleared from the browsers cache after it has been displayed, if the user came back to this page using the back button the page will be reload from the server because it is not in cache, there for my code will not find the hidden variable and redirect the user back to page 1. I think the theory of this will work ok, but I don't know how to clear a page from the browsers cache after it is displayed. Thanks, Mark. "Jeff Harris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Jun 20, 2003, "Mark McCulligh" claimed that: > > |I am building a two page search feature. The user fills out page one, that > |takes them to page two. Then from page two they get the results page from > |the search. If the user hits the back button in their browser I want them > |to go back to page one, NOT page two. > | > |Is the some way I can make page two cache clear, so when the user hits the > |back up button the page has to be reload from the server at which point I > |can forward them back to page one. > | > |Thanks, > |Mark. > > The problem isn't "how do I clear the cache for page 2," it's really "how > do I allow for people to press the back button on the results page and go > back to page 1." > > So, why not create a link <a href='page1.php'>Change search criteria</a>? > > Or, you can also insert a session variable on the results page. Page 2 > will check for the existance of it. If it exists, clear it and bounce the > user to page 1. > > Jeff > -- > Registered Linux user #304026. > "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" > Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED > Responses to this message should conform to RFC 1855. > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php