Callback for many input - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Callback for many input (/showthread.php?tid=63027) |
Callback for many input - StratoKyke - 09-17-2015 I would have the need to use a callback for more 2 two inputs. For example: I have 4 inputs that do not have to be equal to each other. Otherwise you receive an error. How can I fix this problem? RE: Callback for many input - PaulD - 09-17-2015 The docs are pretty good on this http://www.codeigniter.com/user_guide/libraries/form_validation.html?highlight=callbacks#callbacks-your-own-validation-methods Briefly it might look something like: Controller Code: <?php Test View Code: <p><?php echo validation_errors(); ?></p> Hope that helps. Best wishes, Paul. PS Edited as I forgot to prefix callback with callback_ RE: Callback for many input - StratoKyke - 09-17-2015 Thanks for the help, I have solved alone. But really thanks Paul |