Compare commits

...

2 Commits

Author SHA1 Message Date
tracer 3ff406d053 removed static message div 2022-10-30 16:02:03 +01:00
tracer 6abe519a44 added error message in text box 2022-10-30 16:01:29 +01:00
2 changed files with 4 additions and 6 deletions

View File

@ -1,3 +1,7 @@
<script src="/assets/js/functions.js"></script> <script src="/assets/js/functions.js"></script>
<?php if ($message): ?>
<script>setError('<?= $message ?>')</script>
<?php endif; ?>
</body> </body>
</html> </html>

View File

@ -5,12 +5,6 @@
<?php else: ?> <?php else: ?>
<br> <br>
<?php if ($message): ?>
<div class="info">
<?= $message ?>
</div>
<?php endif; ?>
<form method="POST"> <form method="POST">
<label for="nick">Username</label> <label for="nick">Username</label>
<input type="text" name="nick" id="nick"> <input type="text" name="nick" id="nick">