CodeIgniter Forums
Maybe I'm missing something - form validation - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Maybe I'm missing something - form validation (/thread-17323.html)



Maybe I'm missing something - form validation - El Forum - 04-01-2009

[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.


Maybe I'm missing something - form validation - El Forum - 04-01-2009

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


Maybe I'm missing something - form validation - El Forum - 04-02-2009

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