The following files exists in this folder. Click to view.
create_account.php41 lines UTF-8 Unix (LF)
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Skapa konto</title>
<link rel="stylesheet" href="/spectre/spectre-master/dist/spectre.css">
</head>
<body style="text-align: center;">
<br>
<?php
if(isset($_GET["mess"])){
switch($_GET["mess"]){
case "EXISTS":
echo "<mark style=\"background-color: rgba(255, 130, 130, 1); border: 1px solid rgba(255, 0, 0, 1);\">Användranman upptaget, vänligen välj ett annat.</mark>";
break;
}
}
else{
echo "<br>";
}
?>
<h1>Skapa konto</h1>
<form method="post" action="accountant.php">
<p>
<label for="uName" class="form-label">Användarnamn</label>
<input type="text" name="c_username" id="uName" required>
</p>
<p>
<label for="pass" class="form-label">Lösenord</label>
<input type="password" name="c_password" id="pass" required>
<br>
<input type="checkbox" onclick="passShow(pass)"> Visa Lösenord
<p>
<input type="submit" name="submit" value="Skapa konto" class="btn btn-primary">
</p>
</form>
<p>Jag har visst ett konto, jag vill <a href="index.php">Logga in:</a></p>
<script src="../passShow.js"></script>
</body>
</html>