Welcome Guest, Not a member yet? Register   Sign In
[Closed] Codeigniter Validation Question
#1

[eluser]riwakawd[/eluser]
I have the general codeigniter validation setup, but I am trying to add bootstrap input has error and has success.

I have got the bootstrap has-error working. But trying to get it so i input is filed in correct it will show has-succes so input will turn green

Code:
<div class="form-group &lt;?php if(validation_errors()) echo 'has-error'; {else} echo 'has-success'; ?&gt; ">
<label for="input-username">&lt;?php echo $entry_username;?&gt;</label>
&lt;input type="text" name="username" value="&lt;?php echo set_value('username');?&gt;" placeholder="&lt;?php echo $entry_username;?&gt;" id="input-username" class="form-control" /&gt;
</div>


has-success not working.


Messages In This Thread
[Closed] Codeigniter Validation Question - by El Forum - 05-07-2014, 10:49 PM
[Closed] Codeigniter Validation Question - by El Forum - 05-08-2014, 12:50 AM
[Closed] Codeigniter Validation Question - by El Forum - 05-08-2014, 01:21 AM
[Closed] Codeigniter Validation Question - by El Forum - 05-08-2014, 01:39 AM
[Closed] Codeigniter Validation Question - by El Forum - 05-08-2014, 01:52 AM
[Closed] Codeigniter Validation Question - by El Forum - 05-08-2014, 02:22 AM
[Closed] Codeigniter Validation Question - by El Forum - 05-08-2014, 02:35 AM
[Closed] Codeigniter Validation Question - by El Forum - 05-08-2014, 12:26 PM
[Closed] Codeigniter Validation Question - by El Forum - 05-08-2014, 05:12 PM
[Closed] Codeigniter Validation Question - by El Forum - 05-08-2014, 05:27 PM
[Closed] Codeigniter Validation Question - by El Forum - 05-08-2014, 11:56 PM
[Closed] Codeigniter Validation Question - by El Forum - 05-09-2014, 03:10 AM
[Closed] Codeigniter Validation Question - by El Forum - 05-09-2014, 05:55 AM
[Closed] Codeigniter Validation Question - by El Forum - 05-10-2014, 01:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB