[eluser]debow[/eluser]
Hello all,
Can someone please help with with the issue I'm having when trying to build a form and apply the css from a free template I've found. This issue is when I build the form and submit it with empty fields that are required it doesn't show the error. Below is the code.
Code:
<fieldset>
<?php $form_att = array('id'=>'contact'); ?>
<?php echo form_open('contact/add', $form_att); ?>
<label for="conFirst">First name: *</label>
<?php echo form_input('conFirst', set_value('conFirst')) ?>
<?php echo form_error('conFirst'); ?>
However if I try this, my errors display but the css around the form/fieldset is gone.
Code:
<fieldset>
<?php echo form_open('contact/add'); ?>
<label for="conFirst">First name: *</label>
<?php echo form_input('conFirst', set_value('conFirst')) ?>
<?php echo form_error('conFirst'); ?>
Thanks