Welcome Guest, Not a member yet? Register   Sign In
$this->input->post() always returning FALSE
#1

[eluser]karimmaassen[/eluser]
I'm developing a site with a signup form. The problem is that on my localhost (MAMP), everything works fine. But on the public server, every post() is returning FALSE.

This is what the code looks like:
Code:
<fieldset>
<legend>Signup</legend>&lt;?php

echo form_open('signup');

            echo form_input('username', set_value('username', $this->input->post('username')));
            echo form_input('email_address', set_value('email_address', $this->input->post('email_address')));
            echo form_password('password', set_value('password', $this->input->post('password')));
            echo form_submit('submit', 'Create Acccount');

echo form_close(); ?&gt;
</fieldset>



Code:
class Signup extends CI_Controller {
    
    function index()
    {    
        if ($this->input->post())
        {
            $this->load->view('signup_success');
        }
        else
        {
            $this->load->view('signup_fail');
        }
    }

}

Does anyone know what the problem could be?


Messages In This Thread
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:38 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:40 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:41 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:45 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:47 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:53 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:57 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 04:00 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 04:21 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 04:21 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 04:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB