Welcome Guest, Not a member yet? Register   Sign In
form being skipped when I run controller
#1

[eluser]bill19[/eluser]
Hi everyone,

I have a preexisting form that I'm trying to use to collect some data. It seems that my controller bypasses my form completely and the $_POST array is never set. Finally at the end of the script the form appears. Obviously the sequence is wrong. How can I get the order right?

Thanks in advance,

KC



Here is my controller:

Code:
public function index()
{
  $this->load->view('addlisting'); // PREEXISTING FORM
                $this->load->model('newform');
                
                if (isset ($_POST)) {
                
                $this->newform->index();
                
                }
}

here is the model:

Code:
function index() {
        
      
        var_dump($_POST);  

}


Messages In This Thread
form being skipped when I run controller - by El Forum - 04-23-2012, 07:29 AM
form being skipped when I run controller - by El Forum - 04-23-2012, 08:44 AM
form being skipped when I run controller - by El Forum - 04-23-2012, 02:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB