Welcome Guest, Not a member yet? Register   Sign In
min_length[1] bug?
#1

[eluser]JackU[/eluser]
Is there a known issue with the form_validation and min_length[1] option? It doesn´t work really good. I use the fomr_validation to validate my querystring. This works....even if i have the min_lenght[1]

http://www.someurl.com/index.php/control...asdasd&dir;=

My code:
Code:
$this->load->library('form_validation');
$_POST = $this->input->get(null,true);
if ( isset($_POST["dir"]) )
{
    $this->form_validation->set_rules("dir","directoryname","min_length[1]");
    if ($this->form_validation->run() == FALSE)
    {
        //Error
    }
    else
    {
        //Works
    }
}




Theme © iAndrew 2016 - Forum software by © MyBB