When should I prefer Client-side validation checks over Server-side validation checks?

0 votes
Hi. I am building a new web application that takes user information from the html form and send it to the server which then stores the data in the database. For the user input, I want validation and I have two options: client-side check and server-client. My senior asked me to use client-side check but I don't know why and couldn't ask him at that time. Can someone tell me the reason behind this?
Aug 23 in Cyber Security & Ethical Hacking by Rishi
26 views

1 answer to this question.

0 votes
Client-side validation checks are preferred to reduce the load on the server. Suppose there are 5 fields in the form and you decide to use server-side check. Every time there is an invalid input from the user, the server transaction is wasted because the input is sent to the server, gets validated but the data doesn't get stored because it is invalid. In such cases, using client-side checks reduce the requests to the server because only valid inputs are sent to the server. I think you were asked to use client-side checks because the input data is not dangerous to the functions of the web application.
answered Aug 23 by Steven

Related Questions In Cyber Security & Ethical Hacking

0 votes
1 answer

How can I ping my default gateway?

Using the following command you can find ...READ MORE

answered Mar 22 in Cyber Security & Ethical Hacking by Priyaj
• 56,920 points
82 views
0 votes
1 answer
0 votes
0 answers
0 votes
1 answer