Welcome Guest, Not a member yet? Register   Sign In
Help displaying errors with Form Validation
#2

[eluser]TheFuzzy0ne[/eluser]
You can use form_error() to set a class for your element if there is an error:

Code:
<label for="text" &lt;?php echo (form_error('text')) ? ' class="error"' : ''; ?&gt;>Text:</label><br />
&lt;input type="text" name="text" value="&lt;?php echo set_value('text'); ?&gt;" /&gt;


Messages In This Thread
Help displaying errors with Form Validation - by El Forum - 06-27-2009, 09:38 AM
Help displaying errors with Form Validation - by El Forum - 06-27-2009, 10:08 AM
Help displaying errors with Form Validation - by El Forum - 06-27-2009, 10:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB