Accessibility
 
Home > Products > UltraDev > Support > Building Common Applications
Dreamweaver UltraDev Icon Macromedia Dreamweaver UltraDev Support Center - Building Common Applications
Making sure the chosen user name is unique

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

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 already stored in the database table of registered users. If no matching user name is found, 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).

To make sure the chosen user name is unique:

1 In the Server Behaviors panel (Window > Server Behaviors), click the plus (+) button and choose User Authentication > Check New Username from the pop-up menu.
The Check New Username dialog box appears.
2 In the Username Field pop-up menu, choose the form text field your visitors use to enter a user name.
3 In the "If Already Exists, Go To" box, specify a page to open if a matching user name is found in the database table.
The opened page should alert the user that the user name is already taken and let the user try again.
4 Click OK.
The registration page is now ready to accept user names and passwords.

The next step is building a login page so that your user can log in to your site with a registered user name and password.

Building a login page

To Table of Contents Back to Previous document