Form & component validation using PHP
Forms 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.
Validation and Checks of user entered data
Drop down list box in a form
How to collect the data from a simple html form and display all the variables of the form.
Text box is the most commonly used form component. How to use text boxes and how to retain data if form validation fails? .
Radio buttons ( or period ) are used when user has to select one of the many options. Once the validation of form fails then how to retain the selected value of the user in the set of period buttons?
How to handle data if register_global is set to OFF at php.ini file. In PHP5 and above register_global is by default set to OFF
Be the first to post comment on this article :
|Click for more tutorial on FORM handling by PHP|
What is the most important factor of a web site