Skip to content
Greg Bowler edited this page Jan 31, 2023 · 5 revisions

Built on top of [PHP.Gt/Dom][dom], [PHP.Gt/DomValidation][domvalidation] provides server side HTML form validation of user input. It automatically enforces validation rules defined by web standards, such as required inputs, allowed input ranges, and valid select options, but can be extended to validate custom rules such as password complexity.

Many form validation rules are enforced by the browser on the client side, providing a rich user experience across devices, but these rules can be bypassed and have to be duplicated on the server - but having a DOM document available on the server means the validation rules you've already added to your HTML forms can be enforced automatically without having to replicate any validation logic.

Clone this wiki locally