Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i Validate Names???

Status
Not open for further replies.

gazal

Programmer
Apr 30, 2003
212
OM
Hi Guys

I guess a really unique question may be...

Ok here is what i want to achieve

In my application, there is a login form, in which users (the number of users are unlimited and most of them are visitors), have to enter their names and start using the application,

Ok many buggers, instead of putting their name, they just type some meaning less alphabets like ggpphhh;lkl etc...

obviously no one has such a silly name, i have put checks for blanks, spaces, junk characters etc... But i cant prevent them from entering valid alphabets...

So is there any mechanism through which i can validate the input entered by the user is a valid name...
Please note people of religion come and use the application,
they can be christians - like - John
they can be Muslims - Like - Mohammed
they can be Hindus - Like - Amitabh

so validating them with MS-Word Dictionery and all is not possible. and for sure i cant store them in the database.. and even though i store them its not going to solve my purpose...

I am using VB6, SP5, Win98, Win2K.
So is there anyway out....

Pls...........

Regards
Gazal
 
This is probably a very very bad way to do this but for some reason about a year ago I put together roughly 10,000 unique names into an access database. This collection contained all the names from numerous name sites which include the types of names you mentioned. I wouldn't suggest adding a table with these names to your database but perhaps adding a separate database for this purpose wouldn't be the end of the world...

Matt
 
thanks matts

i also thought of it, but will increase the burden and time... on the app...

any more guessessss...

gazal
 
That's going to be tough, how about flagging suspicious names like names with more than 3 consonants in a row, more than two vowels in a row, all consonants or all vowels. If the name is suspicious then clear the screen and have them reenter the name making sure that it is the same as before.

Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
DrJavaJoe

That sounds quite logical, but will involve tons of If's and Elseif's, but to be honest still wont solve the purpose 100%....

Gazal
 
I don't think any solution will solve 100% because there will always be the exceptions. As far as tons of If's and ElseIF's, it won't be using Regular Expressions.

Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top