Results 1 to 2 of 2

Thread: Help

  1. #1
    Join Date
    Dec 1969

    Default Help

    How do I get my asp application to suggest a username, if the one that the user wants is already taken?<BR>Something like the way Yahoo does when you sign up for an email account.<BR><BR>ie (sorry tommy is taken try tommy1, tommy21, etc)<BR><BR>Any feedback would be welcome.<BR><BR>Thanks.

  2. #2
    Ritesh Guest

    Default RE: Help

    You need to decide some predefined formats which can be presented to the user. Lets say you decide to concatenate the name which the user has submitted along with the other information like dateofbirth, street no etc.<BR><BR>Then with the server side code, you can write the client side code to generate all the combinations you want.<BR><BR>&#039if the userid is already in use then<BR><BR>response.write "&#060;input type=radio name=radio_name id=radio1 value=1&#062;" & user_name & "_" & date_of_birth <BR>response.write "&#060;input type=radio name=radio_name id=radio2 value=2&#062;" & user_name & "_" & street_no<BR><BR>etc...<BR><BR>this will give something like a radio button followed by tommy_25 etc. you can generate the code for all the combinations you want. Ofcourse, first you will have to determine whether the resulting code is already not in use. Then when the user selects any radio button, you can determine what he wants.<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts