can anyone give me some guide or point me a way, how can I save a html web form which is partially filled as draft, then it can be reloaded later allowing user to continue fill in all information and subsequently submit it?
I am working on a web form to gather some information input by user, using PHP and MySQL. Have no clue on this. Any guidance will be very much appreciated.
Thanks!
Save the information they write into your database, but set it as not published.
You can do this by creating a boolean
or bit
field called published in the database table.
When they save as a draft, mark published as false or 0.
Then when they finish it you can mark it as true or 1.
When you are displaying the finished forms, do a SELECT * FROM forms WHERE published = 1
and SELECT * FROM forms WHERE published = 0
to get the ones that are not finished.