• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.