move registration link to only show with login form
This commit is contained in:
parent
32f62a9e86
commit
8171131683
@ -10,8 +10,6 @@
|
|||||||
|
|
||||||
<h2>Login</h2>
|
<h2>Login</h2>
|
||||||
|
|
||||||
<p>If you're new here, <a href='register.php'>register first</a>.
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$errors = [];
|
$errors = [];
|
||||||
if (!isset($_SESSION['nickname']) && !isset($_POST['nickname'])) {
|
if (!isset($_SESSION['nickname']) && !isset($_POST['nickname'])) {
|
||||||
@ -58,6 +56,7 @@
|
|||||||
|
|
||||||
function loginForm() {
|
function loginForm() {
|
||||||
?>
|
?>
|
||||||
|
<p>If you're new here, <a href="register.php">register first</a>.</p>
|
||||||
<form method="POST" action="login.php" />
|
<form method="POST" action="login.php" />
|
||||||
<p><label for="nickname">Your username: </label><input type="text" name="nickname" id="nickname" /></p>
|
<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>
|
<p><label for="password">Your password: </label><input type="password" name="password" id="password" /></p>
|
||||||
|
Loading…
Reference in New Issue
Block a user