how to trim input? |
[eluser]umefarooq[/eluser]
hi its really easy just add trim in rules it will call this function here is example Code: $this->form_validation->set_rules('username', 'Username', 'trim|required|min_length[5]|max_length[12]|xss_clean'); read documentation http://ellislab.com/codeigniter/user-gui...ation.html |
Messages In This Thread |
how to trim input? - by El Forum - 01-31-2011, 10:50 PM
how to trim input? - by El Forum - 01-31-2011, 11:59 PM
how to trim input? - by El Forum - 02-01-2011, 04:45 AM
how to trim input? - by El Forum - 02-01-2011, 12:37 PM
how to trim input? - by El Forum - 02-01-2011, 04:44 PM
|