changed the syntax in the login form

This commit is contained in:
hayden 2019-07-04 17:23:39 -05:00
parent 31cb49b874
commit a8fa39751f
1 changed files with 6 additions and 10 deletions

View File

@ -69,18 +69,14 @@ display_header("~chan - login");
</table>
<br>
<button type="Submit">submit</button>
<?php
// displays the error messages
if(isset($_GET['error'])) {
echo "<br><br>";
echo "<div class=\"error\">";
echo htmlspecialchars($_GET['error']);
echo "</div>";
}
?>
<?php if (isset($_GET['error'])): ?>
<br><br>
<div class="error">
<?php echo htmlspecialchars($_GET['error']); ?>
</div>
<?php endif; ?>
</form>
</div>
<?php
display_footer();
?>