Client-side vs. server-side validation

Publié le: 29 janvier 2020
sur la chaîne: Dave Hollingworth
16,907
306

PHP for Beginners course: ➤ https://davehollingworth.com/courses/
PHP MVC course: ► https://davehollingworth.com/courses/

In a web application, which is better, client-side or server-side validation?

In this video we'll see examples of both, using JavaScript in the browser and PHP on the server.

We'll also learn how client-side validation can be bypassed, first by deactivating JavaScript in the browser, then by using the cURL command-line too.

Finally we'll conclude that validation on the server is essential, to protect against malicious users who might be trying to bypass your code. Client-side validation is there to give better feedback to users, and to make your application faster.

Code shown in the video:
https://gist.github.com/daveh/e8565a0...

Documentation shown in the video:

cURL:
https://curl.haxx.se/


Sur cette page du site, vous pouvez voir la vidéo en ligne Client-side vs. server-side validation durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Dave Hollingworth 29 janvier 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 16,907 fois et il a aimé 306 téléspectateurs. Bon visionnage!