...@gmail.com [mailto:guice...@gmail.com] On Behalf Of Philip G
Sent: Thursday, January 08, 2009 12:20 AM
To: Michael Tramontano
Cc: Jake McGraw; fw-general
Subject: Re: [fw-general] Validating a person's name with Zend Validate
On Wed, Jan 7, 2009 at 3:57 PM, Michael Tramontano
mtramont
Hi Philip,
Philip G schrieb:
McCain. ;)
Works totally fine with the solution Michael has proposed.
cu, Lars
I'm trying to figure out the best way to validate a name, using
Zend_Validate, while maintaining UTF8 compliance. Zend_Validate_Alpha() will
check for alphabetic characters. However, while it allows Николь to go
through, O'Reilly fails because of the apostrophe.
Is there some way to add
Philip:
Names (especially if you're handling international characters) tend to
have a huge sub set of possible characters and users tend to get very
pissed off if you develop a pattern that blocks their legal name. My
advice to you, check if it's blank, make sure it isn't too long for
your
2009/1/7 Jake McGraw jmcgr...@gmail.com
Philip:
Names (especially if you're handling international characters) tend to
have a huge sub set of possible characters and users tend to get very
pissed off if you develop a pattern that blocks their legal name. My
advice to you, check if it's
Philip:
Well, if you've got no choice, I suppose it's time to read up on PHP
regex, when using Unicode character classes (see
http://us.php.net/manual/en/regexp.reference.php Unicode character
properties) you can scoop up all of the meaningful letters of a given
code set.
Also, why don't you
, 2009 4:37 PM
To: Jake McGraw
Cc: fw-general
Subject: Re: [fw-general] Validating a person's name with Zend Validate
2009/1/7 Jake McGraw jmcgr...@gmail.com
Philip:
Names (especially if you're handling international characters)
tend to
have a huge sub set
On Wed, Jan 7, 2009 at 3:57 PM, Michael Tramontano
mtramont...@efashionsolutions.com wrote:
Well if you're using ucwords() or ucfirst() for the o'reilly issue,
perhaps you should just uppercase the first letter and ignore the other
characters. That way you get Beth AND O'Reilly.
McCain.