move error message

This commit is contained in:
2025-10-01 17:09:19 +02:00
parent cbf6ef27a2
commit 725518ca8a

View File

@@ -39,12 +39,12 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
<!-- Container login --> <!-- Container login -->
<div class="login-container"> <div class="login-container">
<h1>Login Admin</h1> <h1>Login Admin</h1>
<?php if(isset($error)) echo "<div class='error'>$error</div>"; ?>
<form method="post"> <form method="post">
<input type="text" name="username" placeholder="Username" required><br> <input type="text" name="username" placeholder="Username" required><br>
<input type="password" name="password" placeholder="Password" required><br> <input type="password" name="password" placeholder="Password" required><br>
<button type="submit">Login</button> <button type="submit">Login</button>
</form> </form>
<?php if(isset($error)) echo "<div class='error'>$error</div>"; ?>
</div> </div>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p> <p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
</body> </body>