$successmsg = "Operation successfull"; } else { $errormsg = $staff->get_error(); } } if (isset($_POST['name'])) { $user = new user(); $user->db_open(); $adduser = $user->add_user($_POST['name'], $_POST['regemail'], $_POST['confirmemail'], $_POST['regpassword'], $_POST['confirmpassword'], 2); if ($adduser) { $successmsg = "New staff user crated."; } else { $errormsg = $user->get_error; } } $departments = $ticket->get_departments(); $products = $ticket->get_products(); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Ticket System - Profile</title> <link rel="stylesheet" href="styles/stylesheet.css" type="text/css" media="screen"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800|Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'> </head> <body> <a href="index.php" style="text-decoration: none;" id="banner">Support Ticket System</a> <nav>