View sourcecode

The following files exists in this folder. Click to view.

addUser.php

23 lines UTF-8 Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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>