OK, I'm doing some form validation and I would like to determine whether or not what the user entered is really their name.
I'm validating against the following:
no numeric characters
no special characters (except for ' and - (hypen) )
A-z is OK
letters such as Éáöň need to be allowed.
I'm stuck on letters that have accents and such on them. anyone?
Is it really a name?
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
you may need to check if the submitted data is already in html entity form, as I think (depending on page charset settings) Firefox will entity encode the characters, while IE may not.. I can't remember those details. Anyway, you may be able to check the binary for the extended ascii accent characters and/or use a regex to check against all standardized entities for the accented characters (would need to do the numeric, both unicode and charset specific, and letter combo forms)
it's a party...
it's a party...