Welcome Guest, Not a member yet? Register   Sign In
whitespace in validation
#1

[eluser]Vikeoar[/eluser]
I'm validating a form and using the alpha_dash method with the validation library.

How do I allow for white space in a name? ie. "firstname lastname" without the quotes of course. I tried the trim method but the validation still gets stuck on the name field.

Is there a better method to validate a name that contains whitespace?

I suppose I could break the form up into two separate fields, firstname and lastname.

Any thoughts?

Thanks in advance.


Messages In This Thread
whitespace in validation - by El Forum - 03-04-2008, 02:11 PM
whitespace in validation - by El Forum - 03-04-2008, 03:19 PM
whitespace in validation - by El Forum - 03-04-2008, 05:00 PM
whitespace in validation - by El Forum - 03-05-2008, 01:40 AM
whitespace in validation - by El Forum - 03-05-2008, 08:40 AM
whitespace in validation - by El Forum - 08-04-2008, 09:53 AM
whitespace in validation - by El Forum - 08-04-2008, 02:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB