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

[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">
        &lt;?php echo validation_errors(); ?&gt;  
    </div>  
&lt;?php endif; ?&gt;
Code:
&lt;input type="text" name="input_name_here" id="input_name_here" value="&lt;?php echo set_value('input_name_here'); ?&gt;"&lt;?php if(form_error('input_name_here')): ?&gt;style="border: 1px solid red" &lt;?php endif; ?&gt;  /&gt;


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