Welcome Guest, Not a member yet? Register   Sign In
file uploaded check
#2

[eluser]Bart v B[/eluser]
Then you need to setup some validation rules Wink
Take a look in the userguide: Form validation class

in youre controller:
Code:
<?php

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

if ($this->form_validation->run() == FALSE)
{
  $this->load->view('myform');
}
else
{
  // do something
}


Messages In This Thread
file uploaded check - by El Forum - 04-15-2010, 05:59 PM
file uploaded check - by El Forum - 04-15-2010, 09:20 PM
file uploaded check - by El Forum - 04-16-2010, 02:38 AM
file uploaded check - by El Forum - 04-16-2010, 04:08 PM
file uploaded check - by El Forum - 04-16-2010, 04:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB