Making sure the chosen user name is unique

Making sure the chosen user name is unique

You can add a server behavior to make sure the user name entered is not taken by another registered user.

To make sure the chosen user name is unique:

  1. In the Server Behaviors panel (Window > Server Behaviors), click the Plus (+) button and select User Authentication > Check New Username from the pop-up menu.

    The Check New Username dialog box appears.

  2. Complete the dialog box.

    For instructions, see Setting the Check New Username dialog box options.

  3. Click OK.

Dreamweaver adds a server behavior to the registration page that checks that the user name submitted by a visitor is unique before adding that visitor’s information to the database of registered users.

When the user clicks the Submit button on the registration page, the server behavior compares the user name entered by the user against the user names stored in a database table of registered users. If no matching user name is found in the database table, the server behavior carries out the insert record operation normally. If a matching user name is found, the server behavior cancels the insert record operation and opens a new page (usually a page alerting the user that the user name is already taken).

Related topics

  • Building a registration page


Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
Building ColdFusion Applications Rapidly
Reference
Building ASP.NET Applications Rapidly
Building ASP and JSP Applications Rapidly
 
ASPTreeView.com
 
Evaluation has µТУАГexpired.
Info...