<!-- js --> <script src="../inc/js/jquery-1.7.min.js" type="text/javascript"></script> <script src="../inc/js/jquery-ui-1.8.17.custom.min.js" type="text/javascript"></script> <script src="../inc/js/jquery.validate.js" type="text/javascript"></script> <script src="../inc/js/core.js" type="text/javascript"></script> </head> <?php require_once '../class/include.php'; if (isset($_POST['UserName']) && isset($_POST['Pass'])) { $error = false; require_once '../inc/database.php'; db_connect(); $name = $_POST['UserName']; $pass = $_POST['Pass']; $user = new UserDB(); $bool = $user->Login($name, $pass); if ($bool != 'null') { $_SESSION['user'] = $bool->UserName; echo "<script>window.location='" . PASSTO . "'; </script>"; } else { echo "שם משתמש או סיסמא לא נכונים"; } } ?> <body> <style> table { width:auto; } td