Codeigniter form validation – Input, check box, select, text area and radio buttons – error message

This episode explains how you can display form error messages individually in CodeIgniter 3.

It is relatively simple. All you need to do is use form_error(‘your field name’) method with one argument that is your field name. You can display anywhere either next to form label, after input field you deicide.

To use built in CodeIgniter 3 form validation library, you will have to auto load the form validation library, form helper and url helper in your autoload.php file. This file is located under application/config/autoload.php. You will also require to set up the base url. You can do this by going to application/config/config.php file where you can set the value of base url.

If you have any problems with this code, please do not hesitate to write comments below this video.

Thank you for watching my video
Dharmesh Patel
PHP Developer
0044 7904501896



Do NOT follow this link or you will be banned from the site!