• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
form being skipped when I run controller

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,


Here is my controller:

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

here is the model:

function index() {


Check out the documentation, you're missing lots of things by the look of it

I have looked at that , but I'll check it out again

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.