Codeigniter form validation – Input, check box, select, text area and radio buttons – by group



In this episode, we are going to see how we can group the number of validation rules and then use that group to validate required fields.

To do that, we have used __construct method and specified all validation rule in config array and set those config rules.

We have then use the group signup in our validate method. You can create any number of group and rules for any number of form you have on your site.

Thank you for watching my video.

==========================================
Dharmesh Patel
PHP Developer
0044 7904501896
pateld404@gmail.com
www.dharmeshapatel.com

source

Reply

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