Check new username sb

Posted on 2006-04-18
Last Modified: 2008-02-26
Hello experts
Using Dreamweaver, I have a user registration page which prevents an email address being allowed if it is already taken.

<td colspan="2" class="smallText"><%if (cStr(Request("repeat"))<>"") then Response.Write("That email address is already taken.  Please choose a new email address and try again.<br>(Use your browser's back button to update your previous entry.)")%>
<input name="hiddenUserAccess" type="hidden" id="hiddenUserAccess" value="2"></td>

I would also like to apply this to username and password.

The dreamweaver behavious allows only one Check New Username SB

Is is possible (or desireable) to apply restrictions on username and or passwords.

Thank you
Question by:johnhardy
    LVL 5

    Accepted Solution

    Surely, you wouldn't want to apply this behaviour to passwords!! You don't want to be telling people what passwords are in your system!!

    My advice would be to use email addresses as usernames with an activation email  being sent to the registered email address. This should prevent fraudulent registrations.

    If someone attempts to register a duplicate email address then they have either already registered with you or it isn't their email address they are using in which case you wouldn't want them to be able to register anyway.

    So if a user attempts to register with the following details:

    Email address:
    Password: passw0rd

    ...and the email address already exists then you could let them know that the email address is already registered and offer to send a password reminder to the email address but I wouldn't let them know if the password also exists.

    In summary, there should be no need to check the uniqueness of a password (as the email address and password combination will be unique) and if you use email addresses for usernames with activation emails being sent upon registration then you should be able to keep your registration database fairly clean.

    Hope this helps


    Author Comment

    Thanks Bill,
    Sounds like just the advice I needed



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: HTML5 for Beginning Beginners

    Are you looking for an efficient introduction to HTML5? Have you tried other HTML5 courses and found them too complex? Do you need just the basics of HTML5 to use with Wordpress or other content management system? If you said yes to any of these questions, this course is for you.

    For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
    Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now