In: Computer Science
Give your opinion on server-side vs. client-side validation. Which is better in your opinion? Who should have the power in this validation process
Answer)
Validations can be performed for the users and various other things
such as processes, data. Such validation takes place on the user's
side and also on the server's side. In the server-side validation
process, the input which is submitted and data which is submitted
by the user is sent to the server and there on the server, it is
validated, and then the server sends the feedback tot he client.
Client-side validations are done at the client or user level where
the user inputs are validated at the client's side and usually
carried using a browser programming locally on the websites where
the user validation takes place. Server-side validation is more
secure and stronger as these cannot be bypassed easily like the
client validations and thus are more robust. In the validation
process, the website owner or the administrator to which the site
belongs or the site should be taken care by should have the power
for the validation process as the validation process is used to
validate the user and thus the website owner or admins should have
the authority and power in the validation process.