SQL injection is a risk when user input can manipulate a database query, potentially allowing an attacker to extract sensitive data. HTML form security therefore extends beyond the browser to how the server handles submitted values. section 2.4
When a form submission leads to a database operation, use parameterized queries or prepared statements. Validate input against expected formats and constraints on the server as part of processing it; validation is not a substitute for safe database queries. section 2.4
Interview follow-up
Asked about form security? Explain where submitted input reaches the server, why an unsafe database query is dangerous, and which query technique prevents SQL injection. section 2.4











