PHP Classes

File: src/views/login.php

Recommend this page to a friend!
  Classes of Juan Camacho   Nano PHP Framework   src/views/login.php   Download  
File: src/views/login.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Nano PHP Framework
Build applications with the minimum amount of code
Author: By
Last change:
Date: 10 months ago
Size: 1,497 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>User Login</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
</head>

    <body>
        <div class="container">
            <h1>User Login</h1>

            <?php if (isset($errorMessage)): ?>
<div class="alert alert-danger" role="alert">
                    <?php echo $errorMessage; ?>
</div>
            <?php endif; ?>

            <form method="POST" action="index.php">
                <div class="form-group">
                    <label for="username">Username</label>
                    <input type="text" class="form-control" id="username" name="username" required>
                </div>
                <div class="form-group">
                    <label for="password">Password</label>
                    <input type="password" class="form-control" id="password" name="password" required>
                </div>
                <button type="submit" class="btn btn-primary">Login</button>
            </form>
        </div>

        <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
    </body>

</html>