On Thu, 2005-07-28 at 19:45 +0800, Jason Wong wrote: > On Thursday 28 July 2005 01:50, André Medeiros wrote: > > > You can have four words to describe a first and last name... you can > > have other alphabets, like arabian, chinese, etc... inserting accented > > characters alone would make that a big, nasty regex, let alone > > predicting ways you can describe first/last names. > > > > I'm not saying that I have the _BEST_ sollution. All I'm saying is that > > there are sittuations that are out of your control, and it seems to me > > this might be the easiest way out, guaranteeing that there are at least > > two words. > > Most Chinese would enter their name (usually 3 words, sometimes 2. rarely > 4) WITHOUT any spaces. > > Not sure what the OP was trying to do, but the best way to handle it > (IMHO) is to give the user 2 input boxes, one for family name, the other > for the rest of their name. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > ------------------------------------------ > New Year Resolution: Ignore top posted posts > Heh... that's the best answer i've seen so far =) That and the regexp's idea given by John (ie. forbid chars instead of entering every letter of every alphabet) would work great. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php