changed the syntax in the login form
This commit is contained in:
parent
31cb49b874
commit
a8fa39751f
16
login.php
16
login.php
|
@ -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();
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue