Welcome Guest, Not a member yet? Register   Sign In
priority of validation
#1

I studying "Form Validation" while surfing the net.
It's written by much Website as follows.

Code:
$this->form_validation->set_rules("email", "E-MAIL", "required|trim|callback_validate_credentials");

More than one rule and callback are included by this example.

validate_credentials() is check whether the character string to which that was handed exists in the data base.

But even if a blank is sent, an required error message isn't output, and an error of callback is output.
I'd like to check the required confirmation first.
How should the order of priority be specified?
Reply


Messages In This Thread
priority of validation - by yuki - 04-24-2017, 08:03 AM
RE: priority of validation - by Martin7483 - 04-24-2017, 08:22 AM
RE: priority of validation - by yuki - 04-24-2017, 10:46 PM
RE: priority of validation - by Martin7483 - 04-25-2017, 06:15 AM
RE: priority of validation - by yuki - 04-25-2017, 07:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB