Welcome Guest, Not a member yet? Register   Sign In
using <?php echo validation_errors(); ?> to echo errors
#1

[eluser]R_Nelson[/eluser]
my question is can i some how make this so it has a red box around the errors and have them bullet-ed using <ui> some how?
#2

[eluser]stuffradio[/eluser]
I assume you mean ul and not ui?

Anyways, in css you can use this.

Code:
ul li
{
    border:  1px solid red;
}

Or assign it something like

Code:
#errors_css
{
    border: 1px soild red;
}

[code]
<ul>
<li id="errors_css">&lt;?php echo validation_errors(); ?&gt;</li>
</ul>
#3

[eluser]R_Nelson[/eluser]
was wondering if i could do something like that
#4

[eluser]R_Nelson[/eluser]
that only put it on the first error !
#5

[eluser]bubbafoley[/eluser]
read this: http://ellislab.com/codeigniter/user-gui...delimiters

you change the delimeters and do it like this:

Controller
Code:
$this->form_validation->set_error_delimiters('<li>', '</li>');

View
Code:
<ul class="error">
    &lt;?php echo validation_errors() ?&gt;
</ul>




Theme © iAndrew 2016 - Forum software by © MyBB