Question
Form vaidation question
This is suppose to be a simple task and I have some idea of
how to do it but I'm not sure if my way is the best way.
I have a form and many fields are required fields. The previous programmer had applied the client side form validation using javascript but did not apply server side validation.
Many of our users don't have their browser javascript enabled so we have some problem with our data in our DB.
I need to work on server validation but I don't know if there is a better technique out there especially for situation where user has filled out most of the fields but left one or two required field blank.
Once the form is submitted server side validation is doing its work and throw a message back to user to filled out the 2 required fields but still keep the information on other fields filled out previously.
What can I do to the already filled out form fields to keep what user already entered? this way user doesn't have to re-type the whole thing from start.
If I'm the user I will be furious if I have to start from scratch again.
Do I have to do insert first, then get the data to populate all the fields but show message to user those empty one need to be fill out and once they do that I do an update?
it sound to much work on the server side if I have to do it this way, am I right?
I have a form and many fields are required fields. The previous programmer had applied the client side form validation using javascript but did not apply server side validation.
Many of our users don't have their browser javascript enabled so we have some problem with our data in our DB.
I need to work on server validation but I don't know if there is a better technique out there especially for situation where user has filled out most of the fields but left one or two required field blank.
Once the form is submitted server side validation is doing its work and throw a message back to user to filled out the 2 required fields but still keep the information on other fields filled out previously.
What can I do to the already filled out form fields to keep what user already entered? this way user doesn't have to re-type the whole thing from start.
If I'm the user I will be furious if I have to start from scratch again.
Do I have to do insert first, then get the data to populate all the fields but show message to user those empty one need to be fill out and once they do that I do an update?
it sound to much work on the server side if I have to do it this way, am I right?
