Welcome Guest, Not a member yet? Register   Sign In
Run functions in index method
#7

[eluser]nuwanda[/eluser]
Where is your validation? In the index method?

That won't work.

You need a method in your controller that will take the post data from your view. Then you validate the data.

Code:
function process_form(){

  //get the something input data
  $this->load->input('something');

  validate something;

  if validation fails{

    $this->load->view('myview');

  }

}


Messages In This Thread
Run functions in index method - by El Forum - 11-10-2010, 03:57 AM
Run functions in index method - by El Forum - 11-10-2010, 06:40 AM
Run functions in index method - by El Forum - 11-10-2010, 07:02 AM
Run functions in index method - by El Forum - 11-11-2010, 06:14 AM
Run functions in index method - by El Forum - 11-11-2010, 06:33 AM
Run functions in index method - by El Forum - 11-11-2010, 06:59 AM
Run functions in index method - by El Forum - 11-12-2010, 03:23 AM
Run functions in index method - by El Forum - 11-12-2010, 08:20 AM
Run functions in index method - by El Forum - 11-12-2010, 03:52 PM
Run functions in index method - by El Forum - 11-12-2010, 09:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB