• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Few questions about Form_Validation

Hello all, new here to the community. I was wondering if there is a way to know if errors exists within form_validation.

For example, I would like to be able to do something like this:

<?php if(validation_errors() == true):?>
  <li>&lt;?php echo form_error('username'); ?&gt; etc... </li>
&lt;?php endif;?&gt;

Question 2, Instead of using:
<li>&lt;?php echo form_error('username'); ?&gt; etc... </li>
Would I be able to use this instead? for the previous example:
$this->form_validation->set_error_delimiters('<li class="error">', '</li>');

Q3, for the rules: Is it possible to use some native rules, and at the same time use a callback_ validation function?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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