");
if (connectDatabase("compsci.bearlabs.uncw.edu", $_REQUEST['username'], $_REQUEST['password'])) {
// database connection successful
print("Database connection established!
");
//save username and password in session variables if database access was successful
$_SESSION['user'] = $_REQUEST['username'];
$_SESSION['password'] = $_REQUEST['password'];
// show user the menu options
showMenu();
}
else {
print ("Database connection could not be made. Check username/password.
");
print ("Click here here to try again
");
}
?>