storing form values on form's submit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • OB82
    New Member
    • Jul 2008
    • 1

    storing form values on form's submit

    Hey, guys,
    I have a form in php, people have to fill their names and stuff and send it. if they use the same form for a second time, i dont want them to fill the form allover again. So is there a way, to keep a kind of history of the form. what i mean is, i dont want to lose the values of the form after its submited.


    thanks
    OB
  • webster5u
    New Member
    • Jan 2008
    • 28

    #2
    Do you consider the session before? If you put all value in session then system can retrieve previous record from session variable.

    Comment

    • Brosert
      New Member
      • Jul 2008
      • 57

      #3
      Do you want the values to be persistent straight away, or in the long term...(ie willl they fill the same form again after a few seconds or hours/days/weeks/months later)?

      If the form needs to be fille multiple times in a single sitting, I'm pretty sure any 'POST' data hangs around, and is accessible (provided you haven't overriden it with a variable of the same name) in your PHP script - and can be used to initialise field names. The first time you navigate to the page, the variables have not been set, and will leave blank fields on your form.
      More information: http://www.w3schools.com/php/php_post.asp


      If the form needs to be filled on two seperate occasions, consider using a cookie to store the variable data on the clients machine

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Since this has nothing to do with Java, I've moved it to the Javascript forum.

        Comment

        • gits
          Recognized Expert Moderator Expert
          • May 2007
          • 5388

          #5
          hi ...

          i changed the thread title to better describe the problem so that other users with similar problems may better find this thread ... have a look here ... and remember to use a meaningful thread-title ...

          kind regards
          MOD

          Comment

          Working...