Data validation helps prevent incomplete, incorrectly formatted or otherwise invalid data from being saved. PHPRunner provides several ways to validate user input, from built-in field rules to custom JavaScript and server-side validation.
The right approach depends on what you need to check. Simple requirements such as mandatory fields can usually be handled with built-in validation. More complex business rules may require custom code.
A useful rule is to distinguish between user experience and data integrity. Client-side validation gives users immediate feedback, but important rules should also be enforced on the server before data is saved.
Continue Reading "Data Validation in PHPRunner: Client-Side and Server-Side Options" →