Welcome Guest, Not a member yet? Register   Sign In
Simple customising of the 'Validation_errors' message
#7

[eluser]Bas Vermeulen[/eluser]
You're welcome, happy to help out.

Yeah, the following will do that:

Code:
<input type="text" name="input_name_here" id="input_name_here" value="<?php echo set_value('input_name_here'); ?>"<?php if(isset($this->form_validation->_error_array['input_name_here'])): ?>style="border: 1px solid red" <?php endif; ?>  />

Instead of setting the style like shown you ofc should set a class Wink


Messages In This Thread
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 01:42 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 06:40 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 06:46 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 06:54 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 06:57 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 07:00 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 07:17 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 07:38 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 07:42 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 09:15 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 09:19 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 09:38 AM
Simple customising of the 'Validation_errors' message - by El Forum - 10-02-2010, 09:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB