>I have to show some of the posible usernames available when a user can
not get a perticular username in a very normal member registration
form.
I will be thankful if anyone can show me a way to this.
1. Make up some similar user names to what the user asked for.
2. Check these against the list of taken user names, eliminating
the ones already taken.
3. Present the list to the user.
Some similar user names include:
- append a digit to what the user asked for.
- change one letter in what the user asked for
- change a substring that corresponds to a name to a similar name
e.g. CharlesH -> CharlieH. This requires a known list of similar
names to make it work.
- Possibly try a combination of several of the above.
You do have to make sure your suggestions don't run over the length
limit for a user name, that they contain only legal characters, and
possibly screen your suggestions for swear words.
Gordon L. Burditt