Welcome Guest, Not a member yet? Register   Sign In
min_length and max_length being ignored
#4

[eluser]Sepix[/eluser]
[quote author="Aken" date="1341802474"]Post your whole controller function.[/quote]

Here you go:

Code:
function index()
    {
        $this->load->helper(array('form', 'url'));

        $this->load->library('form_validation');

        $this->form_validation->set_rules('name', 'Name', 'required|min_length[3]|max_length[36]|is.unique[users.name]');
        $this->form_validation->set_rules('password', 'Password', 'required|matches[passconf]');
        $this->form_validation->set_rules('passconf', 'Password Confirmation', 'required');
        $this->form_validation->set_rules('email', 'Email', 'required|matches[emailconf]|valid_email|is_unique[users.email]');
        $this->form_validation->set_rules('emailconf', 'Email Confirmation', 'required');

        if ($this->form_validation->run() == FALSE)
        {
            $this->load->view('registration');
        }
        else
        {
            $this->load->view('portal');
        }
    }

However this doesn't change much. All other flags are working without any problems so it cannot be a problem with the controller. The only things that do not work is min and max length.


Messages In This Thread
min_length and max_length being ignored - by El Forum - 07-08-2012, 05:39 PM
min_length and max_length being ignored - by El Forum - 07-08-2012, 07:54 PM
min_length and max_length being ignored - by El Forum - 07-08-2012, 11:30 PM
min_length and max_length being ignored - by El Forum - 07-09-2012, 01:41 AM
min_length and max_length being ignored - by El Forum - 07-09-2012, 02:07 AM
min_length and max_length being ignored - by El Forum - 07-09-2012, 02:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB