[eluser]Dennis Rasmussen[/eluser]
This can do the job as well.
Code:
<?php if(validation_errors()):?>
<div class="error" style="background:red;border-bottom:1px solid black">
<?php echo validation_errors(); ?>
</div>
<?php endif; ?>
Code:
<input type="text" name="input_name_here" id="input_name_here" value="<?php echo set_value('input_name_here'); ?>"<?php if(form_error('input_name_here')): ?>style="border: 1px solid red" <?php endif; ?> />