04-23-2012, 07:29 AM
[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:
here is the model:
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);
}