CodeIgniter Forums

Full Version: Maybe I'm missing something - form validation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]ggoforth[/eluser]
Is there a preset validation for just text, numbers, and spaces? Like you might find in a textarea, with a few paragraphs. Unless I'm doing something wrong, when I set a validation method to alpha or alpha_numeric, it will return false if there are spaces in it. Just curious if that was possible, or if I would have to run my own callback to figure that one out.

El Forum

[eluser]Thorpe Obazee[/eluser]
space isn't alpha numeric. I believe you'd do a callback for this and use regular expressions.

El Forum

[eluser]TheFuzzy0ne[/eluser]
What characters don't you want to allow?