move registration link to only show with login form

This commit is contained in:
Sundog Jones 2024-05-13 12:39:26 -04:00
parent 32f62a9e86
commit 8171131683

View File

@ -10,8 +10,6 @@
<h2>Login</h2>
<p>If you're new here, <a href='register.php'>register first</a>.
<?php
$errors = [];
if (!isset($_SESSION['nickname']) && !isset($_POST['nickname'])) {
@ -58,6 +56,7 @@
function loginForm() {
?>
<p>If you're new here, <a href="register.php">register first</a>.</p>
<form method="POST" action="login.php" />
<p><label for="nickname">Your username: </label><input type="text" name="nickname" id="nickname" /></p>
<p><label for="password">Your password: </label><input type="password" name="password" id="password" /></p>