Welcome Guest, Not a member yet? Register   Sign In
Validation errors
#4

[eluser]ccschmitz[/eluser]
[quote author="mi6crazyheart" date="1310080824"]Try this for showing u'r validation error...
Code:
&lt;?php echo validation_errors('<div class="error">', '</div>'); ?&gt;
[/quote]

You're right, you should specify a suffix if you are going to set a prefix, but in your case it should still be generating valid HTML because the default suffix is a closing paragraph tag. You could actually remove the prefix as well because the default prefix is the same as what you are setting it to.

From the form validation library:

Code:
var $_error_prefix            = '<p class="error">';
var $_error_suffix            = '</p>';


Messages In This Thread
Validation errors - by El Forum - 07-07-2011, 08:49 AM
Validation errors - by El Forum - 07-07-2011, 12:20 PM
Validation errors - by El Forum - 07-07-2011, 01:17 PM
Validation errors - by El Forum - 07-07-2011, 01:20 PM
Validation errors - by El Forum - 07-07-2011, 05:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB