login.php

File Type: php File Location: monofiles/ File name: login.php
<?php
    $loginpage 
true;
    include_once 
'data_connect.php'
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Login</title>
<link rel="stylesheet" type="text/css" href="cmstyle.css">
</head>
<body>

    <form name="login" action="" method="post">
    
    
        <div class="login-wrapper">
        
        
            <div id="login-container">
            <?php 
            
            
if (isset($_SESSION['MONfailedlogin'])) {
                
                print 
'<div class="loginf">Login failed</div>';
                unset(
$_SESSION['MONfailedlogin']);
            
            }
                
        
?>
                <img class="loginlogo" src="images/logo.png">
                 
                 
                <!-- Username -->
                <div class="login-box">
                    <input class="login-input" type="text" name="username" placeholder="Username" value="">
                </div>
                
                
                <!-- Password -->
                <div class="login-box">
                    <input class="login-input" type="password" name="password" placeholder="Password" value="">
                </div>

                
                <!-- Submit -->
                <input id="login-button" class="stylish-button" type="submit" name="submit" value="Login">
                
            </div>
        </div>
    </form>
</body>
</html>