Guest User

Untitled

a guest
Oct 31st, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.  
  3. class Users extends CI_Controller {
  4.  
  5.  
  6.     public function login()
  7.     {
  8.         //Setting up variables
  9.         $username = $this->input->post('username');
  10.         $password = $this->input->post('password');
  11.        
  12.         $this->load->model('users_model');
  13.         $checkUser = $this->users_model->checkUser($username, $password);
  14.        
  15.         echo $this->input->post('username');
  16.        
  17.         //if($checkUser):
  18.         //  echo "Logget in";
  19.         //else:
  20.         //  echo "false!";
  21.         //endif;
  22.        
  23.        
  24.     }
  25.    
  26. }
Add Comment
Please, Sign In to add comment