3
How do I store data from a form temporarily before entering it into the database? I have a form with a set of fields. After the user fills the set of fields, he will have the option to add another set with the same fields to insert new values. I would like to enter it into the database only when the user has completed the completion. Each set of fields should be a record in the table. How can I do that?
You can use the
$_SESSION
to store these elements.– Jorge B.
Will work for inputs with the same
name
?– Amanda Lima
Related: Save form data in session
– Jorge B.
Or you can always create a temporary table.
– Jorge B.
you want to save to the user or to the server?
– Leandro Amorim
I want to save the data to the user
– Amanda Lima