The validation that is involved in this example is:
User name: Length, character verification, repetitive Ajax validation (whether it already exists).
Password: Length verification, repeat input password verification.
Mail: Email address
2. Verifying data
PHP Native Implementation
Validating input data is also important, unlike filtering, where validation does not remove information from the input data, but simply confirms that user input is meeting expectations. If you enter an e-
This article mainly introduced the YII2 framework data validation operation, combined with the case form detailed analysis the YII framework common data validation operation principle, the realization method and the related operation skill, the need
Jquery. Validation is an excellent jquery plugin that validates client forms and provides a number of customizable properties and methods for good extensibility. Now combined with the actual situation, I have often used in the project validation
Jquery. Validation is an excellent jquery plug-in that validates client forms and provides a number of customizable properties and methods for good scalability. Now combined with the actual situation, I will often use the validation of the project
Ziadoz a list of PHP resources that are maintained on GitHub, including libraries, frameworks, templates, security, code Analysis, logs, third-party libraries, configuration tools, Web tools, books, ebooks, classic blogs, and more. Bó Lè has
Dependency ManagementDependency and Package Management Library
Composer/packagist: A package and dependency manager
Composer Installers: A multi-frame Composer Library Installer
Pickle: a php extension installer
Other
Other frameworksOther web development frameworks
Symfony cmf-Create a custom CMS Content management framework
KNP rad bundle-symfony 2 Fast Application (RAD) Pack
Framework ComponentsStandalone components from the Web development
1. Form ValidationFor all data entered by the user, you cannot trust it and must be verified.All frameworks are so, for yii you can use functionsyii\base\model::validate () for verificationHe will return a Boolean value of True/falseIf validation
Use PHP's own filter function for data validation
Use PHP's own filter function for data validation
PHP filters contain two types of
Validation:Used to verify that a validation entry is valid
sanitization:Used to format the validated
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.