The following files exists in this folder. Click to view.
delete_user_form.php47 lines ASCII Unix (LF)
<?php
session_start();
include('check_login.php');
?>
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LBMBanking</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
</head>
<body>
<div class="container-fluid pt-5">
<?php
echo'<div class="row justify-content-center">';
if(isset($_GET['mess'])){
switch($_GET['mess']){
case 'wrong':
echo"<div class=\"alert alert-danger col-md-4\" role=\"alert\">
Wrong username or password!
</div>";
break;
}
}
else{
echo'<div class="container py-4"></div>';
}
echo'</div>';
echo'<div class="row justify-content-center">
<form class="col-md-4 p-4 border border-success-subtle rounded" action="delete_user.php" method="POST">
<div class="mb-3">
<label for="exampleInputEmail1" class="form-label">Username</label>
<input type="text" class="form-control" id="exampleInputEmail1" name="username" required>
</div>
<div class="mb-3">
<label for="exampleInputPassword1" class="form-label">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" name="password" required>
</div>
<button type="submit" class="btn btn-success mb-2">Delete User</button>
</form>
</div>
';
?>
</div>
</body>
</html>