CodeIgniter Forums

Full Version: Valdating field with spaces
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

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