Fixed date and other extras

This commit is contained in:
Joey Lai
2017-01-26 14:50:41 +01:00
parent 4c5ea08614
commit 96f70e1a11
8 changed files with 156 additions and 72 deletions

View File

@@ -20,15 +20,15 @@
}
// Define variables and set to empty values
$uname = $psw ="";
$user = $psw ="";
$loginErr = $resetErr ="";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
switch ($_POST["submit"]) {
case "login":
try {
$uname = ($_POST["uname"]);
validateLogin($_POST["uname"], $_POST["psw"]);
$user = ($_POST["user"]);
validateLogin($_POST["user"], $_POST["psw"]);
} catch(loginException $e) {
$loginErr = $e->getMessage();
}