Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Created by PhpStorm.
- * User: nadir
- * Date: 10-4-2019
- * Time: 11:02
- */
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <link href="../css/style.css" rel="stylesheet" type="text/css">
- <link href="style.css" rel="stylesheet" type="text/css">
- <meta charset="utf-8" />
- <title>Opdrachten PHP periode 3</title>
- </head>
- <body>
- <<?php
- include '../includes/header.php';
- ?>
- <div id="wrapper">
- <?php
- $users = array(
- "Henk" => "1234",
- "Hans" => "hansanders",
- "ilias" => "slaafje123",
- "piet" => "pietanders",
- "hansie" => "kastie",
- "anjers" => "kanjers",
- "peter" => "rdevries",
- "jan" => "jan123",
- "CB" => "hey",
- "jans" => "pan",
- "pietje" => "bell"
- );
- $message = " foute combinatie";
- $usernameInput = $_POST{"userName"};
- $passwordInput = $_POST{"passWord"};
- $combinationFound = false;
- foreach ( $users as $index => $value)
- {
- if ($usernameInput == $index && $passwordInput == $value)
- {
- $combinationFound = true;
- }
- }
- if ($combinationFound == false)
- {
- echo $message;
- }
- ?>
- <h1>Bergheen</h1>
- <p>Welkom!</p>
- <form>
- <fieldset id="openTime">
- <legend>Openingstijden</legend>
- <Li>do:22:00</Li>
- <Li>vr: all day</Li>
- <Li>za: All day </Li>
- <Li>zo:12:00</Li>
- </fieldset>
- </form>
- <?php
- include '../includes/footer.php';
- ?>
- </body>
- </html>
- <?php
- /**
- * Created by PhpStorm.
- * User: nadir
- * Date: 10-4-2019
- * Time: 11:01
- */
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <link href="../css/style.css" rel="stylesheet" type="text/css">
- <meta charset="utf-8" />
- <title>Opdrachten PHP periode 3</title>
- </head>
- <body>
- <<?php
- include '../includes/header.php';
- ?>
- <div id="wrapper">
- <h2>Berghen </h2>
- <p>Login om de adresgegevens en tijden te zien</p>
- <p style="color: red">
- <?php
- ?>
- </p>
- <table>
- <form action="script.php" method="post">
- <tr>
- <td>
- Username
- </td>
- <td>
- <input type="text" name="userName" required>
- </td>
- </tr>
- <tr>
- <td>
- Password:
- </td>
- <td>
- <input type="password" name="passWord" required>
- </td>
- </tr>
- <tr>
- <td>
- <input type="submit" name="btnSubmit">
- </td>
- </tr>
- </form>
- </table>
- <?php
- include '../includes/footer.php';
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement