-
Notifications
You must be signed in to change notification settings - Fork 2
/
error_notify.php
31 lines (19 loc) · 792 Bytes
/
error_notify.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
if (isset($_SESSION['errorArray']) && is_array($_SESSION['errorArray'])) {
$errorArray = $_SESSION['errorArray'];
if (validate_array($errorArray, true)) {
foreach ($errorArray as $message) {
echo '<input type="hidden" name="errorMessage[]" class="errorNotification" value="' . $message . '" />';
}
}
unset($_SESSION['errorArray']);
}
if (isset($_SESSION['successArray']) && is_array($_SESSION['successArray'])) {
$successArray = $_SESSION['successArray'];
if (validate_array($successArray, true)) {
foreach ($successArray as $message) {
echo '<input type="hidden" name="successMessage[]" class="successNotification" value="' . $message . '" />';
}
}
unset($_SESSION['successArray']);
}