R
R
romikiz2020-08-11 21:50:53
HTML
romikiz, 2020-08-11 21:50:53

Where to store temporary form data when the user fills it out?

Colleagues, good time!
I'm working on a web project in which the user has to fill out a survey form in 6 steps/pages with a bunch of inputs, checkboxes and pictures. There was a question and how to store the data of forms? Writing everything to the database from the first step does not work, there is experience, many users clicked and left, but the records in the database remained! Sessions, I was interested, but I doubt it, I came across such a comment - link .

Need advice, should there be some good practice?!
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2020-08-11
@romikiz

localstorage.
and it’s not a problem to store in the database - it’s easy to periodically clean up old unfinished records.

K
Kirill Makarov, 2020-08-12
@kirbi1996

Localstorage, if you write in react, you can throw it into the context somewhere, through usecontext

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question