FORM VALIDATION

Form Validation
Form Validation
Form validation is the method/process of checking that a form input field of the form has been filled correctly by the user. For example, if your form has a box for the user to type their email address, you might want your form handler to check that they've filled in their  email address input field before you processing all the form input values in the form.

It is always a good practice to validate the form before performing operation on data of the database.

Types of Form Validation

1. Server Side Validation

In PHP web Programming, Server Side is usually done with ASP, PHP scripts.In Server Side Validation,the values of form input  is actually sent to server and server checks the correctness of user input values to the form.The form input values must be sent to the server for validation. So, Server side validation is slow process and often more tricky to code and it also increases load of server computer.

Server Side validation is more secure than the client side validation . That is why,we prefer Server side validation rather than client side validation real life application.

2.Client Side Validation

In PHP web Programming, Client side validation is usually done with JavaScript.
In Client validation,the browser doesn't need to connect to the server for validation of the form and form validation is handled by local machine using various client side script.So, the client side validation is fast and the user finds out instantly if they've missed out that required field or if they have input wrong input to the form input field. It  decreases the load of server computer and  server computer can focus on business logic processing


We keep on updating such tutorials. 

For more such tutorials like our Facebook page. 

Comments

Post a Comment

Popular posts from this blog

INTEGRATE BOOTSTRAP WITH PHP CODEIGNITER FRAMEWORK

CodeIgnitor installing guide

Selecting data from database in CodeIgnitor