function display_errors($errors=array()) {
$output = '';
if(!empty($errors)) {
$output .= "
";
$output .= "Please fix the following errors:";
$output .= "
";
foreach($errors as $error) {
$output .= "- " . h($error) . "
";
}
$output .= "
";
$output .= "
";
}
return $output;
}