Welcome Guest, Not a member yet? Register   Sign In
Form Validation Using Form Helper
#7

[eluser]Ivar89[/eluser]
I don't really see the fault but wouldn't this eb WAY easier?:
Code:
<label id="message">Message:</label>
&lt;input type="text" name="message" id="message" value="&lt;?php echo set_value('message') ?&gt;" style="width:153px"&gt;
also you could define the Label in your fomr_validation array:
Code:
$config_rules = array(
               array(
                     'field'   => 'message',
                     'label' => 'Message',
                     'rules'   => 'trim|required'
                  ),


Messages In This Thread
Form Validation Using Form Helper - by El Forum - 06-13-2010, 12:51 PM
Form Validation Using Form Helper - by El Forum - 06-13-2010, 01:35 PM
Form Validation Using Form Helper - by El Forum - 06-13-2010, 01:49 PM
Form Validation Using Form Helper - by El Forum - 06-13-2010, 02:01 PM
Form Validation Using Form Helper - by El Forum - 06-13-2010, 02:14 PM
Form Validation Using Form Helper - by El Forum - 06-13-2010, 02:24 PM
Form Validation Using Form Helper - by El Forum - 06-14-2010, 02:25 AM
Form Validation Using Form Helper - by El Forum - 06-14-2010, 02:29 PM
Form Validation Using Form Helper - by El Forum - 06-15-2010, 12:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB