473,406 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Suggesting available username

Hi,
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.

Thanks,
Jaunty Edward
Jul 17 '05 #1
2 1980
>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
Jul 17 '05 #2
sm***********@hotpop.com (Jaunty Edward) wrote in message news:<1e**************************@posting.google. com>...
Hi,
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.


1. make the username field UNIQUE.
2. Insert the new username in the table.
a. if no duplicate error, then no problem. Continue the
procedure.
b. if there is duplicate error, fetch similar usernames from the
table. "SELECT username FROM user_info WHERE username='$newusername'".
Now you have array of similar usernames.
c. Call GenUsernames() function which appends user's DOB, DOJ,
etc but excludes the names in similar usernames list. Done.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Steve | last post by:
Hi I have a really weird problem and any assistance would be welcome. I have developed an app in Access 2002. The app runs perfectly on the development machine. I have packaged the app using...
6
by: Christoph Schuster | last post by:
Hi ! We have a Liveserver running with ASP.NET 1.1.4322.0, whicht get a error after 3-5 days running: Source: ASP.NET 1.1.4322.0 Event ID: 1088 Description: Failed to execute request...
2
by: Adam Witney | last post by:
I'd like to be able to have a PL/pgSQL function defined as SECURITY DEFINER, but still have access to the calling username within the function. Is this possible? I could pass current_user as a...
0
by: george_Martinho | last post by:
It seems that the ASP.NET Microsoft team didn't think about this!! The profilemanager class has the following methods: - DeleteInactiveProfiles. Enables you to delete all profiles older than a...
10
by: Sridhar | last post by:
HI, I am having problems setting up a website so that it will be available only inside the domain. We have three servers. One is iis server and second one is internal server and the third one is...
4
by: dw | last post by:
Hello - I added a new web page (.ascx) to my project and for some reason the Web Forms section of the toolbox is totally disabled. The HTML toolbox section is enabled and available. I looked at...
1
by: aaron | last post by:
Output of "top" prior to initiation of mysql: load averages: 0.60, 0.97, 1.05 19:03:45 44 processes: 43 sleeping, 1 on cpu CPU states: 97.1% idle, 0.0% user, 0.8% kernel, 2.1% iowait, ...
3
by: sherifffruitfly | last post by:
Hi all, I've got a URI (ip/port) that has a web service on the other end. I can't access it through VS Add Web Reference because it requires authentication. How can I find out the interface the...
14
by: kmpathy | last post by:
I am new Sql Plus Want to know the command for viewing databases avaialble using default password and username on my co. server.. (example : dir command for viewing files) help me.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.