errors register code example
Example: errors register
register errors form :
formErrors.php :
<?php if(!empty($errors)): ?>
<?php if(count($errors)): ?>
<div class = "msg error">
<?php foreach ($errors as $error):?>
<ul>
<li><?php echo $error; ?></li>
</ul>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php endif; ?>