Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Book Now - Demo</title>
- <!-- Bootstrap -->
- <link href="css/bootstrap.min.css" rel="stylesheet">
- <link href="css/style.css" rel="stylesheet">
- </head>
- <body>
- <div class="container">
- <div class="info">
- <h2 class="bg-primary">Demo - Login to Continue</h2>
- <div class="bg-info">
- <div class="col-md-6 col-md-offset-3">
- <h4></span>Log in with your credentials</h4><br/>
- <h4>Admin Login - Username: admin Password: demo<br>
- Customer Login - Username: customer Password: demo</h4><br>
- </br>
- <div class="block-margin-top">
- <?php
- $errors = array(
- 1=>"Invalid user name or password, Try again",
- 2=>"Please login to access this area"
- );
- $error_id = isset($_GET['err']) ? (int)$_GET['err'] : 0;
- if ($error_id == 1) {
- echo '<p class="text-danger">'.$errors[$error_id].'</p>';
- }elseif ($error_id == 2) {
- echo '<p class="text-danger">'.$errors[$error_id].'</p>';
- }
- ?>
- <form action="authenticate.php" method="POST" class="form-signin col-md-8 col-md-offset-2" role="form">
- <input type="text" name="username" class="form-control" placeholder="Username" required autofocus><br/>
- <input type="password" name="password" class="form-control" placeholder="Password" required><br/>
- <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement