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:
- 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.
- Complete the dialog box.
For instructions, see Setting the Check New Username dialog box options.
- 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 visitors 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).
- Building a registration page