I'm new to programming.Need some help in codeigniter login system...This is my code this is the controller function....how to check name and password is correct credential
function login(){
if($this->input->post("submit")){
$values=array(
"name"=>$this->input->post("name"),
"password"=>$this->input->post("password")
);
}
$this->load->view("view_login");
}