$error=array();
foreach($_SESSION['notifications'] as $n=>$v){
if($v['title']=='Error'){
$error[]=$v['message'];
unset($_SESSION['notifications'][$n]);
}
}
?>
echo implode(' ',$error); ?>
```
While it is possible to use only HTML, problem there is that a bad login gets recorded into a session and when you finally login you start get error messages that should not be there anymore, therefore, you must use PHP and handle the session errors as they arrive, show them, clean them so they would not disturb peace again.
$error=array();
foreach($_SESSION['notifications'] as $n=>$v){
if($v['title']=='Error'){
$error[]=$v['message'];
unset($_SESSION['notifications'][$n]);
}
}
?>
echo implode(' ',$error); ?>
```
While it is possible to use only HTML, problem there is that a bad login gets recorded into a session and when you finally login you start get error messages that should not be there anymore, therefore, you must use PHP and handle the session errors as they arrive, show them, clean them so they would not disturb peace again.[/QUOTE]
I have a use for this, did you ever end up finishing it up and cleaning it up?