Forms
Every application has a data entry point where it enables end users to input data. Forms are meant to insert or update input data to a server and on a page. Input data should be validated before it is submitted for further action. There are two types of validation methods applied: client-side validation and server-side validation:
- Server-side validation: Server-side validations will be handled by the server. The information received will be processed and validated by the server. It is necessary to update the UI with appropriate information if there are any errors in submitting the form. If the information is invalid or not sufficient, then the appropriate response will be sent back to the client. This approach to validation is more secure as it works even if JavaScript is turned off in the browser and also, malicious users can't bypass the server-side validation. However, the drawback of this approach is that the form will be validated only after submitting it to the server. So, the...