Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 519
  • Last Modified:

Returnable Forms

I need to rebuild some forms so that my customers can return to the form and pick up where they left off.  Right now if the customer leaves the page when they come back the looses their data when page is reloaded with a blank form.  

I'm working with php/mySQL

I expect that I need to save the data as the form is filled out,  and then use a cookie to store the record number. Then check for the cookie and if found reload the data on page load.   Having  never done this before I was hoping someone could point me to some how-to articles.

Thanks in advance
  • 2
2 Solutions
If they simply place data into the form fields without pressing the submit then the data will not be saved either way. If you have a long form, break it up into multiple pages and use sessions to store the data.As long as they do not close the browser, the variables will remain in the session.
jws2bayAuthor Commented:
I have long forms and at the end of the form I save the data as the customer does a final calculation of the shipping.  If the customer tries to return to the form (back) a new blank form is loaded.  All data has been lost.

I'm thinking I need to build a form which is saved as the user moves through the form.  I have never used cookies, but it seems like I could do something with cookies to make a form where the customer could return to tweak the data.

 Right now I open the form in it's own window, and have the form menu set up so if the customer leaves the form to search the site that is opened in its own window.

I have customers complaining about having to re-enter all their data several times before they order.  I looking for a good way to build forms where they can return later and have their data still in the form.  

I could have them log-in & out and reload their data on the log-in.  I was assuming that somebody might have a tried and true approach to the problem.
jws2bayAuthor Commented:
I was hoping for a more verbose answer.  I feel like there must be a few good and lots of bad ways to approach this problem. - I do appreciate the response I did get.  Thanks again.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now