I’m using the following rule for my input:
callback_validate_host
I need to make the following condition:
if callback_validate_host is FALSE afterwards it should use the valid_ip validation rule.
So if validation of both: callback_validate_host and valid_ip on one input if FALSE then is should throw an error message.
How can I do that?
How about using your existing
validate_host()method in conjunction with the Input class’$this->input->valid_ip($ip)method to create a single callback? Something like this: