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

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

if($this->form_validation->run('anime/add') == TRUE){
            $template['result'] = TRUE;

How do I use the form validation to "require" the
<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.

$this->form_validation->set_rules('image', 'Image', 'required');

Theme © iAndrew 2016 - Forum software by © MyBB