[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 152
  • Last Modified:

Saving a web-form for later use?

I have a dilema that I am not sure what way to go.  I have a php-html webform that I would like the user to have the option of clicking "Save for Later" and be able to save it and come back to it at another time.  I am not running an online DB at this time.  Is this possible?  Any suggestions would be greatly appreciated.

Thank you,
Michael Zury
0
solsticeint
Asked:
solsticeint
  • 3
  • 2
  • 2
1 Solution
 
quincydudeCommented:
You can save the form content as cookies on the client pc so when the form is loaded again, those entered data can be populated back to the fields.
0
 
solsticeintAuthor Commented:
By doing that, I could set the cookie to delete information if the form was submitted?  Also if they had cookies disabled that you not work?  

Thank you
0
 
quincydudeCommented:
Yes you can delete cookies in your code and of course this won't work if client disable the cookie. You can put a note to tell them about it so they will not disable if they want to redo the form at a later time.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
b0lsc0ttCommented:
solsticeint,

You could do this with files on your server too.  The cookie method is most common and easiest though.  As long as the user will use the same computer and browser to finish and the info isn't too much cookies will work, if enabled.  As long as the cookie isn't a third party cookie it will most likely be saved.

As an alternative though you could use some unique identifier you generate and provide to the user as a file name for a text file on your server with the form info.  PHP can get form data and work with files on the server (i.e. create, read, write, and delete).  This would be an alternative if you can't count on cookies, have lots of info in the form, or want to provide a way to "carry the info" to another computer, browser, etc.

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
solsticeintAuthor Commented:
Could the person save the file on their computer and then upload it?
0
 
b0lsc0ttCommented:
If you set up your server and pages to work with it then they could.  That adds complication to the process though since you need the server to make the file that can be saved, send it to the user, provide a page for the upload, and have script to process it.  You can make pages and scripts to do it though.
Let me know if you have any other questions.  If you need details on anything let me know but you might need to open new questions to get real details on this whole project.
bol
0
 
b0lsc0ttCommented:
I am glad I could help.  Thanks for the grade, the points and the fun question.
bol
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

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