<?php

session_start();
if (isset($_POST["submit"])) {
   $_SESSION['username'] = $username;
   $_SESSION['password'] = $password;  
}
?>
<!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>Login - Drone in schools</title>
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet">
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
</head>

<body>
    <div class="container">
        <div class="col-md-5 form-box-container">
            <form class="form-box">
                <div class="form-logo-simple" align="center">
                    <img src="images/logo_kit.png">
                </div>
                <!-- <h2>Sign In</h2> -->
                <div class="inner-addon left-addon">
                    <i class="glyphicon glyphicon-user"></i>
                    <input type="text" class="form-control" id="username" placeholder="Username">
                </div>
                <div class="inner-addon left-addon">
                    <i class="glyphicon glyphicon-lock"></i>
                    <input type="password" class="form-control" id="password" placeholder="Password">
                </div>
                <button type="button" class="glass btn-block">Login</button>
                <div class="form-group rem-for">
                    <div class="checkbox pull-left">
                        <label>
                            <input type="checkbox">Remember me
                        </label>
                    </div>
                    <div class="pull-right forgot-password">
                        <a href="#">Forgot Password?</a>
                    </div>
                    <div class="clearfix"></div>
                    <?php 
                        
                        if ($_GET["errorcode"] == 3){
                        echo '<div class="alert alert-danger" role="alert">Invalid Username or Password</div>';

                    }?>
                </div>
            </form>
        </div>
    </div>
</body>

</html>
