Full name validation in codeigniter |
[eluser]Aqsa Jamil[/eluser]
Which validation rule is used to validate full name field in codeigniter. I need to place a validation rule that full name field should accept space between first name and last name Can any one help me ????
[eluser]Sanjay Sarvaiya[/eluser]
you can use callback function in validation. if you have not idea about callback please read this userguide. http://ellislab.com/codeigniter/user-gui...#callbacks
[eluser]Aqsa Jamil[/eluser]
How to write callback function for checking if user is entering space between first name and last name???
[eluser]Sanjay Sarvaiya[/eluser]
I think you have not read user guide Every things are described on it. in your case your call back function will be shaw in bellowed Example. may this help you. Code: //set your validation rules |
Welcome Guest, Not a member yet? Register Sign In |