client-side-validation

Why is client-side validation not enough?

落花浮王杯 提交于 2019-11-26 00:55:40
问题 I saw here that: As you probably already know, relying on client-side validation alone is a very bad idea. Always perform appropriate server-side validation as well. Could you explain why server-side validation is a must? 回答1: Client-side validation - I assume you are talking about web pages here - relies on JavaScript. JavaScript powered validation can be turned off in the user's browser, fail due to a scripting error, or be maliciously circumvented without much effort. Also, the whole

Why is client-side validation not enough?

◇◆丶佛笑我妖孽 提交于 2019-11-25 22:21:23
I saw here that: As you probably already know, relying on client-side validation alone is a very bad idea. Always perform appropriate server-side validation as well. Could you explain why server-side validation is a must? Client-side validation - I assume you are talking about web pages here - relies on JavaScript . JavaScript powered validation can be turned off in the user's browser, fail due to a scripting error, or be maliciously circumvented without much effort. Also, the whole process of form submission can be faked. Therefore, there is never a guarantee that what arrives server side, is