We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11975
    • 2,542 Posts
    Hello everybody, smiley

    One more time, please apologize my english.

    I’m developping a snippet containing a form.


    When I ‘m testing it with firefox and fill the form everything is ok (datas are transmitted) the matter is that if I click on back button in browser the form fields are empty.(what should not be)

    If I’m trying the same thing with safari, clicking back, the form contains as expected the values entered.

    Anybody has an idea wherhe this issue come form huh

    Thx for your help.
      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 18397
      • 3,250 Posts
      This is a browser issue from what I can remember in that certain browsers remember formdata entered on a pervious page and others don’t. Try the SessionSaver extension for Firefox and see if that fixs things.
        • 11975
        • 2,542 Posts
        thx for answering.

        The point is that if i’m trying the code I’ve written for the snippet as a standalone php script, the variables are still there after clicking the back button.

        That’s why I suppose the matter is linked to modx.

        Whatever I’m gonna try your proposal.

        thx
          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • 11975
          • 2,542 Posts
          Hi everybody,

          Back in english area and still have not found a way to fix the issue.

          I’ve updated the subject because the matter is not relative to firefox but any browser tested (PC/MAC: firefox 1.5,  IE 6.0, Camino 1.0 mac only) except safari.

          You can see by yourself by going there --> h**p://www.az-traduction.fr/traduction-en-ligne/Commandez-une-traduction.html
          Fill the form validate and click back -> no more datas the page is reloaded.

          Then go there --> h***p://www.az-traduction.fr/commander-traduction/commande-traduction.php
          This the same script but outside modx
          Fill the form validate and click back -> datas are still here as usual

          Any help appreciated smiley

          P.S: Does anybody have an example of a modx based website with a form in which you still have the datas after clicking back huh???
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 11975
            • 2,542 Posts
            Thanks to guillaume in franch forum who gave me a clue to detect a potential origin of the issue.

            Bravo guillaume,  smiley

            the trouble seems tobe relative to the HTTP HEADER sent back by the server and MODx

            When I’m looking at the "response header" with firefox web developper toolbar


            My snippet send back:
            --> h**p://www.az-traduction.fr/traduction-en-ligne/Commandez-une-traduction.html
            Date: Fri, 10 Mar 2006 13:25:57 GMT
            Server: Apache
            Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
            Expires: Thu, 19 Nov 1981 08:52:00 GMT
            P3P: CP="NOI NID ADMa OUR IND UNI COM NAV"
            Pragma: no-cache
            X-Powered-By: PHP/4.4.2
            Keep-Alive: timeout=15, max=84
            Connection: Keep-Alive
            Content-Type: text/html; charset=iso-8859-1
            Content-Encoding: gzip
            Content-Length: 1821

            200 OK

            HTTP HEADER sent back outside MODx when the script is executed:
            h**p://www.az-traduction.fr/commander-traduction/commande-traduction.php
            Date: Fri, 10 Mar 2006 13:27:27 GMT
            Server: Apache
            X-Powered-By: PHP/4.4.2
            Keep-Alive: timeout=15, max=66
            Connection: Keep-Alive
            Content-Type: text/html
            Content-Encoding: gzip
            Content-Length: 1644

            200 OK

            Je guess the issue comes from this line :

            Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0

            Is there a way to change the header sent back by MODx and  will this change affect MODx


            Thx for your help smiley



              Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • And the
              Pragma: no-cache
              Keep-Alive: timeout=15, max=84
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 11975
                • 2,542 Posts
                Thx for your answer but how could I change these values???

                I don’t find in MODx Code where to define these values
                  Made with MODx : [url=http://www.copadel.com]copadel, fruits et l