How to suggest possible usernames to the user
-
Hi Friends, I am working on a web application. I have to implement UserRegistration functionality. In that when user clicks on the "Submit" button after filling up all the information in Registration form my code should check for if the given username exists in the database. If it is already in the database then 3 new possible username should be displayed to the user to try with. I have implemented up to the checking in the database and I able to get whether the given username exsists in the database. But I need some kind of logic or algorithm using which I can create new usernames for the user and display choices to the users. Use enters FirstName, LastName and Location in the Registration form which can be consider to generate new usernames. I dont need the code, I just want an overall logic to create for generating usernames. Thank you all in advance.
Thanks and Regards, Chetan Ranpariya
-
Hi Friends, I am working on a web application. I have to implement UserRegistration functionality. In that when user clicks on the "Submit" button after filling up all the information in Registration form my code should check for if the given username exists in the database. If it is already in the database then 3 new possible username should be displayed to the user to try with. I have implemented up to the checking in the database and I able to get whether the given username exsists in the database. But I need some kind of logic or algorithm using which I can create new usernames for the user and display choices to the users. Use enters FirstName, LastName and Location in the Registration form which can be consider to generate new usernames. I dont need the code, I just want an overall logic to create for generating usernames. Thank you all in advance.
Thanks and Regards, Chetan Ranpariya
Hi Chetan My suggestion is you can take the other details entered by user like DOB, LastName, FirstName etc and generate a set of possible combinations. Now check these combinations exist in the DB, if not display names to the user. Hope this helps
Navaneeth My Website
-
Hi Chetan My suggestion is you can take the other details entered by user like DOB, LastName, FirstName etc and generate a set of possible combinations. Now check these combinations exist in the DB, if not display names to the user. Hope this helps
Navaneeth My Website
Hey Navneeth, Thank you very much for the reply.
Thanks and Regards, Chetan Ranpariya