<?php session_start(); mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); include 'sunapeedb.php'; $db = new SunapeeDB(); $db->connect(); //echo $_SESSION["user_type"]; if ($_SESSION["user_type"] == 1) { $flag = 1; } else { if ($_SESSION["user_type"] == 2) { $flag = 2; } else { $flag = $db->isCust($_POST["userName"], $_POST["userPassword"]); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <meta name="author" content=""> <!-- <link rel="icon" href="../../favicon.ico"> --> <link rel="icon" href="ATA.jpg">