-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.php
20 lines (20 loc) · 958 Bytes
/
errors.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php if (!empty($_SESSION['signupMessage'])) : ?>
<div class="message-container">
<?php if (isset($_SESSION['signupMessage']['error']) && is_array($_SESSION['signupMessage']['error'])) : ?>
<div class="errors">
<?php foreach ($_SESSION['signupMessage']['error'] as $errorMessage) : ?>
<div class="error"><?= $errorMessage ?></div>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if (isset($_SESSION['signupMessage']['success']) && is_array($_SESSION['signupMessage']['success'])) :
?>
<div class="successes">
<?php foreach ($_SESSION['signupMessage']['success'] as $successMessage) : ?>
<div class="success"><?= $successMessage ?></div>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php unset($_SESSION['signupMessage']); ?>
</div>
<?php endif; ?>