Welcome Guest, Not a member yet? Register   Sign In
I want validation_errors with <br>, but just one <br> between errors message.
#4

[eluser]CroNiX[/eluser]
Looking at the code for validation_errors($open, $close), it seems if you pass an empty open or close string it defaults back to whatever the default is for $form_validation->error_prefix and $form_validation->error_suffix, which is a p tag, or whatever they have been set to using set_error_delimiters().

So it seems, you should use
Code:
$this->form_validation->set_error_delimiters('', '<br />');
to set those defaults and then this should probably work.

Code:
echo validation_errors('', '<br>');


Messages In This Thread
I want validation_errors with <br>, but just one <br> between errors message. - by El Forum - 09-23-2012, 10:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB