[eluser]Procode[/eluser]
I am slightly stuck with this issue. I want to load the view and process the data from within one function. However it doesn't seem to work when I do the following:
Code:
public function login(){
$submit = $this->input->post('submit');
if(!isset($submit)){
//Show the view
} else {
//Process the form
}
}
The form never submits. Is there a better way to do this?
Thank you!