have you ever tried form_error() ? |
[eluser]runrun[/eluser]
If you know how to use this please help me. This is my form: Code: <form id="register_form" method="post"> this is controller: Code: $this->load->library('validation'); There is no error message when I submit empty form.
[eluser]pistolPete[/eluser]
You are using the deprecated Validation library instead of the newer Form Validation library. form_error() is used in the newer one.
[eluser]runrun[/eluser]
I want to set multiple rules using array is it possible ?
[eluser]TheFuzzy0ne[/eluser]
[url="http://ellislab.com/codeigniter/user-guide/libraries/form_validation.html#validationrulesasarray"]RTFUG[/url]. ![]()
[eluser]pistolPete[/eluser]
There is no difference between using arrays and multiple calling set_rules(). The cascading rules example from the userguide using arrays would look like: Code: $config = array(
|
Welcome Guest, Not a member yet? Register Sign In |