Back-end Validation
Understand the importance of back-end validation in PHP to secure user input beyond front-end checks. Learn to use PHP's filter_var function for sanitizing and validating data and apply prepared statements to prevent SQL injection.
We'll cover the following...
We'll cover the following...
No matter how complex of a client-side validation we perform, server-side validation is just as crucial and important.
Front-end validation can be bypassed if:
Curious to know how front-end validation can be bypassed?
- A malicious user turns off JavaScript on their browser.
- Middlemen attacks occur, which change the data after the request is submitted by a user, but before it is received by the server.
We’ve been practicing back-end validation in the previous ...