Now: Tutorial for Web and Software Design > PHP > QA > PHP Content
> PHPFAQ - I keep getting Data Missing when I click the back button in my browser. How can I stop this? [Bookmark it]
PHPFAQ - I keep getting Data Missing when I click the back button in my browser. How can I stop this?


Question :

I keep getting "Data Missing" when I click the "back" button in my browser. How can I stop this?

Answer :This is due to the fact that you have posted data to a web page, so it's considered to be dynamic and therefore should not be cached by the browser. There are several kludges, but no real fixes to this:

  • Try making the page to open in a new window using target="_blank". The back button will be greyed out as the new window won't have a history; to go "back", simply close the window.
  • Use the GET method for your forms instead of POST. Then the information is kept in the url and there's no 'data missing'.
  • Put a "back" button that would repost the data to the previous page. If users complain, just tell them to use the "back" button you have instead of the browser's back button.


[Bookmark][Print] [Close][To Top]
  • Prev Article-PHP:

  • Next Article-PHP:
  • Related Materias
    PHPFAQ - How google is you
    PHPFAQ - Are there any web
    PHPFAQ - How can I accept 
    PHPFAQ - How can I finance
    PHPFAQ - Where can I get P
    PHPFAQ - Where can I host 
    PHPFAQ - Where can I find 
    PHPFAQ - I am trying to cr
    PHPFAQ - Is there a librar
    PHPFAQ - How can I manage 
    Topics
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Graphic Design Tutorial
     

    Coreldraw Tutorial

      Illustrator Tutorial
      3D Graphics Articles
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial&Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial&Articles
     

    XML Style Tutorial

      AJAX Tutorial
      XML Mobile
    Flash Tutorial&Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial&Articles
     

    Linux Tutorial

      Symbian Tutorial
      MacOS Tutorial