Welcome Guest, Not a member yet? Register   Sign In
image form validation -> config
#1

[eluser]DaTran[/eluser]
I have this in my controller; as you can see i am using the form validation config file to call all validations.

Code:
if($this->form_validation->run('anime/add') == TRUE){
        
        if($this->anime_model->add($this->input->post())){
          if($this->upload->do_upload('image')){
            $template['result'] = TRUE;
          }
        }
}

How do I use the form validation to "require" the
Code:
<input type="file" name="image" size="20" />
field. (views page)
It keeps saying that there is no image selected.

I am also using MY_Form_validation.php to call in custom validations.


Messages In This Thread
image form validation -> config - by El Forum - 04-23-2011, 09:22 PM
image form validation -> config - by El Forum - 04-25-2011, 05:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB