The following files exists in this folder. Click to view.
addUser.php23 lines UTF-8 Unix (LF)
<?php
require_once "check_login.php";
$mess = isset($_GET["mess"]) ? "<p style='color:red;'>".htmlspecialchars($_GET["mess"])."</p>" : "";
?>
<!doctype html>
<html lang="sv">
<head><meta charset="utf-8"><title>Lägg till</title></head>
<body>
<h1>Lägg till användare</h1>
<?php echo $mess; ?>
<form method="post" action="insertUser.php">
<label>Användarnamn</label>
<input type="text" name="username" required>
<label>Lösenord</label>
<input type="text" name="password" required>
<button type="submit">Lägg till</button>
</form>
<p><a href="admin.php">Tillbaka</a></p>
</body>
</html>