Codeigniter form validations

In this tutorial we are going to implement the codeignator form validation using ci inbuild library. first we wants to make the HTML coding inside the view folder. create view file give the name as like validations.php. validation_errors() is the codeignator function which allows to show the error messages.more info visit the

PHP code..



Password Confirm



Email Address

set_value(‘field_name’) is used to when form is submitted values does not fill up blank. it’s store the values when user is enter the values.Now we are going to implement the controller file inside the application/controller folder. code is like that when form validation is false run the validations file again and displaying the error message using the validation_errors() functions otherwise run the validationsuccess.php view file.

PHP code..

Your form was submitted successfully!