<?php error_reporting(1); ob_start(); session_start(); include "model/commonFunctions.php"; include "controller/userController.php"; $userContObj = new userController(); if ($_POST['submits'] == "Sign In") { $countVal = $userContObj->userLogin($_POST); if ($countVal > 0 && $_SESSION['user_id'] != "") { header("location:index.php"); exit; } else { header("location:login.php?err=done"); exit; } } if ($_SESSION['user_id'] != "") { header("location:index.php"); } ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Remove Tap Highlight on Windows Phone IE --> <meta name="msapplication-tap-highlight" content="no"/>