-3
In a company CRUD for example, we often find extensive forms, with many fields and probably the user will forget or fill out some(s) incorrectly, so by giving Submit in the form which is the best way to save and rewrite the entered data, if there is an error, so that you do not need to complete the form from scratch again?
I think of some solutions:
Use session variables to store all typed data and to rewrite it to check if the variable exists and then write it to the document.
Do the whole Submit by Ajax, do not reload the page when giving Submit, but rather send the data for validation. (but it seems to me that the application loses performance).
Validate everything with Javascript, although some fields will need to perform database queries to be validated.
These are the ways I can imagine, but I don’t know which would be the most cost-effective for software agility, and whether there are other ways. Which would be the best and which would give less headache?
Another mass negative question, in my opinion, a valid question. It’s not based on opinions, it’s based on discovering which way is most used, because many people have this doubt and it can have several ways to do it, so it would take the form that you would find most usable.
– Leonardo