Welcome Guest, Not a member yet? Register   Sign In
Help with login function
#1

[eluser]jrad[/eluser]
I'm having problems with my login in CI. I'm really in dire need of help to check on my custom login function. Here's part of the code:

Code:
function login()
    {
        $username = $this->input->post('username');
        $password = $this->input->post('password');
            
        if ($username = '' || $password = '')
        {
            $this->session->set_flashdata('message', 'Username and Password required.');
            $data['apptitle']         = $this->appTitle;
            $data['header_title']        = $this->appTitle;
            $data['header_subtitle']    = "Doña Ramona, Isabela City, Basilan Province";
            $this->load->view('entry_view', $data);
        }
        }

If I try to send an empty form I get a 404 page, which should not be the case because I intend to redirect back to the login page.


Messages In This Thread
Help with login function - by El Forum - 08-20-2008, 08:19 PM
Help with login function - by El Forum - 08-20-2008, 11:52 PM
Help with login function - by El Forum - 08-21-2008, 12:33 AM
Help with login function - by El Forum - 08-21-2008, 01:25 AM
Help with login function - by El Forum - 08-21-2008, 01:45 AM
Help with login function - by El Forum - 08-21-2008, 02:28 AM
Help with login function - by El Forum - 08-21-2008, 05:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB