| 123456789101112131415161718192021222324252627 |
- <?php
- session_start();
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Signup</title>
- </head>
- <body>
- <h1>Signup</h1>
- <form action="adduser.php" method="post">
- <label for="login">Login</label> <input type="text" id="login" name="login" required autofocus>
- <label for="password">Password</label> <input type="password" id="password" name="password" required>
- <label for="confirm">Confirm password</label> <input type="password" id="confirm" name="confirm" required>
- <input type="submit" value="Signup">
- </form>
- <p>
- If you already have an account, <a href="signin.php">signin</a>.
- </p>
- <?php if ( isset($_SESSION['message']) && !empty($_SESSION['message']) ) { ?>
- <section>
- <p><?= $_SESSION['message']; ?></p>
- </section>
- <?php } ?>
- </body>
- </html>
|