changed the syntax in the register form

This commit is contained in:
hayden 2019-07-04 18:31:30 -05:00
parent a8fa39751f
commit f2f286f0d4
1 changed files with 6 additions and 8 deletions

View File

@ -116,14 +116,12 @@ display_header("~chan - register");
</table>
<br>
<button type="Submit">submit</button>
<?php
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