$password = $details['password']; if ($_POST['username']) { $username = $_POST['username']; } if ($_POST['name']) { $name = $_POST['name']; } if ($_POST['email']) { $email = $_POST['email']; } if ($_POST['password']) { $password = hash('md4', $_POST['password']); } $dbh = Connection::cal_rw(); $obj_assignee = new calendarConfig(); $obj_assignee->editUserDetails($dbh, $user_id, $username, $name, $email, $password); } if ($action == "deleteuser") { $user_id = $_POST['user_id']; $dbh = Connection::cal_rw(); $obj_assignee = new calendarConfig(); $obj_assignee->deleteUser($dbh, $user_id); } ?> <table width =500px; height= 150px;> <tr><td> <a href="#" onclick="document.getElementById('hiddenForm').style.display = 'block';document.getElementById('hiddenForm2').style.display = 'none';document.getElementById('hiddenForm3').style.display = 'none'; return false;">Add new user</a>/ <a href="#" onclick="document.getElementById('hiddenForm2').style.display = 'block';document.getElementById('hiddenForm').style.display = 'none';document.getElementById('hiddenForm3').style.display = 'none'; return false;">Edit existing user details</a> /<a href="#" onclick="document.getElementById('hiddenForm3').style.display = 'block';document.getElementById('hiddenForm2').style.display = 'none';document.getElementById('hiddenForm').style.display = 'none'; return false;">Delete an user</a> <form action="user_mgmt.php?action=adduser" method="post" id="hiddenForm" style="display: none;"> <table border=2px;>