<button type="submit" name="logout" >Logout</button> </form> <?php if (isset($_GET['logout'])) { Session::DestroySession(); } if (isset($_POST['confirm'])) { $customerUpdate = AdminClass::UpdateUsers(); header("Location: Admin.php"); } else { if (isset($_POST['cancel'])) { header("Location: Admin.php"); } else { if (isset($_GET['delete'])) { AdminClass::DeleteUsers(); header("Location: Admin.php"); } } } $customers = AdminClass::ViewUsers(); ?> <form action='' method='get' id='admin_form'></form> <table class='datatable'> <caption> Users List: </caption> <tr> <th scope='col'>Select User: </th> <th scope='col'>Firstname: </th>