public function login() { require_once 'model/doctor.php'; //echo "in login"; //session_start(); $user_name = $_POST['username']; $pwd = $_POST['password']; //$encpwd = sha1($password); //echo $username . $password; Doctor::auth($user_name, $pwd); // var_dump("yay"); header('location: view/doctor/profile.php'); }