Learn PHP: Form Handling and Validation
Process HTML form submissions with PHP: read GET and POST data, print it safely, keep forms sticky, validate input with filters and regular expressions, report errors, and keep user input out of your SQL with prepared statements.
- Beginner level
- 2 modules
- 11 lessons
- 53 tasks and questions
Syllabus
01Handling FormsHow HTML forms send data to PHP, reading it from $_GET, $_POST and $_SERVER, printing it safely, and building forms that remember their values.5 lessons
02Validating FormsCheck that input is present and well formed with PHP's filter functions and regular expressions, report errors clearly, and keep submitted data out of SQL with prepared statements.6 lessons