How to validate a field against another field name? |
Like we have less than, greater than, etc etc.
But, is there any validation to validate a field against another field like matches[] does. I have a field called num1 and another field called num2, I always need num2 should be less than num1. Means if there is an input in num 1 and input in num2, the validation should be less than num1. Ex. num1 = 2; num2 = 3 error : num2 should be less than num1 Is there anything like this?
It seems there is no rule lke that.
https://codeigniter4.github.io/CodeIgnit...able-rules Create the custom rule: https://codeigniter4.github.io/CodeIgnit...parameters |
Welcome Guest, Not a member yet? Register Sign In |