Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <form action="login.php" method="post">
- <div class="imgcontainer">
- <img src="img/logo_stevens.png" alt="bedrijfslogo" class="avatar">
- </div>
- <div class="container">
- <label><b>Gebruikersnaam</b></label>
- <input type="text" name="uname" id="uname" required>
- <label><b>Wachtwoord</b></label>
- <input type="password" name="psw" id="psw" required>
- <button type="submit">Login</button>
- <input type="checkbox" checked="checked"> Mij onthouden
- </div>
- </form>
- <?php
- ?>
- </body>
- <?php
- include 'db_connection.php';
- $username = $_POST["uname"];
- $password = $_POST["psw"];
- $sql = mysqli_query($conn, "SELECT FROM gebruiker (username, wachtwoord)
- WHERE username = $username AND wachtwoord = $password");
- if (mysqli_num_rows($sql) >= 1) {
- header('index.php');
- } else {
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement