Form & component validation using PHPForms are mainly used to collect user entered data to the system. We enter our login data or use one signup form to enter data as a user to a database table or to a form processing script. There are different components like text box, radio buttons, checkbox, combo box or drop down list boxes for users to enter data to a system. You can read more details on web form and its components in our HTML section.
We will discuss some basic issues relating to handling of form components and some sample codes here.
Checkbox How to use and handle checkbox data.
Checkbox data How to handle the post back data for a check box if validation fails?
Checkbox & database Retrieving and storing data of checkbox
Validation and Checks of user entered data
How to retain form data Retaining the data in the form if it fails to submit
Data Validation and posting back Validating all form components and posting back
Date validation Validating user entered date value.
Email Validation Checking format of user entered email address
Email Validation using Ajax Using Ajax to validate email address
validate form Php code to validate data after posting by user
Checking for number only Returns falls if data is not a number
is_int Checks if data is an integer or not
alphanumeric characters Characters A to Z and numbers are only allowed.
Only alphabets Checking for Alphabets only
Drop down list box in a form
Drop down listbox Retaining user selection of a drop down list box
Multiple selection Handling multiple selection of drop down list box
Be the first to post comment on this article :