Welcome Guest, Not a member yet? Register   Sign In
how to validate user's login?
#1

[eluser]Tony W[/eluser]
I used the form helper to generate a form for login including the username and password fields.

In my function, I used the following to catch the submitted info:

Code:
$username = $this->input->post('username', TRUE);
    $password = $this->input->post('password', TRUE);

I wonder how to validate the username and password (to compare with the usernames and passwords in mysql database).

Can I use this db query?
Code:
$this->db->where('username', $username);


Messages In This Thread
how to validate user's login? - by El Forum - 07-01-2008, 10:08 AM
how to validate user's login? - by El Forum - 07-01-2008, 10:28 AM
how to validate user's login? - by El Forum - 07-01-2008, 11:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB