CodeIgniter Forums
Valdating field with spaces - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Valdating field with spaces (/thread-54486.html)



Valdating field with spaces - El Forum - 09-11-2012

[eluser]Swayam[/eluser]
Hello Guys..


I am validating a form in which there is a field with the name of job title..i am setting the rules like..
Code:
$this->form_validation->set_rules('title', 'Job Title', 'required|alpha');
but it won't allow spaces..

So anybody plz help me... Thnks in advance


Valdating field with spaces - El Forum - 09-11-2012

[eluser]Bias Tegaralaga[/eluser]
because space is not alphabetical characters.