The log-in page is straightforward. It consists of a form with two text fields, one for the user name and the other for the password. Setting up the server-side code for this page is equally direct and requires a single server behavior.
From the Server Behaviors panel, click Add (+) and choose User Authentication > Log In User.
In the sample file, the two fields are named appropriately: User Name and Password. The password field, additionally, is set to mask the entered values (see Figure 3).

Figure 3. The log-in page
When the Log In User dialog box opens, do the following (see Figure 4):

Figure 4. The Dreamweaver database connection
When activated by clicking the Log In button, the Log In User server behavior verifies that the entered user name and password match the values found in the admin table. If a match is found, the initial administrative page, reg.php, is displayed; if not, the log-in page is reshown and the user name and password fields are cleared.
Note: For your convenience, a record has already been added to the admin table with the user name of admin and password of pass. Use these values when testing your sample application.