The following files exists in this folder. Click to view.
index.php65 lines UTF-8 Unix (LF) 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
<?php
// shorthand if
$mess = isset($_GET['mess']) ? "<p class='has-text-danger'>" . $_GET['mess'] . "</p>" : "";
?>
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Inloggningsapplikation</title>
<!-- Bulma -->
<link rel="stylesheet" href="bulma.css">
</head>
<body>
<section class="section">
<div class="container">
<div class="columns is-centered">
<div class="column is-4">
<h1 class="title">Inloggningsapplikationen</h1>
<?php echo $mess; ?>
<form method="POST" action="login.php">
<div class="field">
<label class="label" for="username">Användarnamn</label>
<div class="control">
<input class="input" id="username" name="username" type="text" required>
</div>
</div>
<div class="field">
<label class="label" for="password">Lösenord</label>
<div class="control">
<input class="input" id="password" name="password" type="password" required>
</div>
</div>
<div class="field">
<label class="checkbox">
<input type="checkbox" name="keepLoggedIn">
Håll mig inloggad
</label>
</div>
<div class="field">
<button class="button is-primary is-fullwidth">
Logga in
</button>
</div>
</form>
</div>
</div>
</div>
</section>
</body>
</html>