<?php require_once "Class/clsUser.php"; $location = $_SESSION['dbname']; $clsUser = new clsUser(); $updateAccountOk = false; if (array_key_exists("updateProfile", $_POST)) { $clsUser->updateUserProfile($_POST['fullname'], $_POST['contactno'], $_POST['description']); } else { if (array_key_exists("updateAccount", $_POST)) { $updateAccountOk = $clsUser->updateAccount($_POST['username'], $_POST['password'], $_POST['confirmpassword']); } } $user = $clsUser->getUserInfo(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>ELECSYS | User</title> <?php include '/Includes/incHead.php'; ?> </head> <body> <!-- Navigation --> <?php include '/Includes/incNav.php'; ?> <!-- End -->