I am working on a project that uses dynamic buttons to navigate 
through search results. The way it is set up right now, the buttons 
work perfect, as long as the user doesn't use the broswer's back 
button. Here's how the buttons work:

They are javascript buttons that use a php session variable to set 
where they should navigate to. This said, once the button is 
clicked, the php session variable is then updated to reflect the new 
base record number. Something like:

$SESSION[0][BASE]=$SESSION[0][BASE]+10;

Now, this works great, unless the user hits the back button on the 
browser, because the session variable doesn't reload it's previous 
value. So, if the base value had been 20 on the new page, and the 
person clicks 'back' on their browser, the value remains 20. What it 
does it creates a situation where the person might have went back to 
the page that shows records 1-10 of 25, but when he/she clicks the 
next button, it's now going to take him/her to the page for records 
20-25. If they click the browser's back button again, they will once 
again arrive at records 1-10, but if they click the next button 
again, it will take them to a blank page showing records 30-25 of 
25... etc..

Is there a way in php to detect the back button being used on the 
browser? If not, how can I do a check to override the new session 
variable?

Any and all help is greatly appreciated!








Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to