create a new table by choosing Insert, Table. The Table dialog appears. Assign the table 4 rows, 2 columns, a width of 300 pixels, and a border, cell padding, and cell spacing of 0 pixels. Click OK to create the table within the form. 5. Below the new table, add a link to the New User Registration page. You can do this by placing your cursor next to the table and pressing Enter. Now choose Insert, Hyperlink. The Hyperlink dialog appears. Enter the text New User in the Text text box and enter the path to register.asp, register.cfm, or register.php (depending on the server model you're using) in the Link text box. Click OK when you're finished. The new link is created below the table. 6. Place your cursor in the first cell of the first column of the new table and add the text Username:. Move your cursor to the second cell of the first column of the same table and add the text Password:. 7. Place your cursor in the first cell of the second column and add a new text field form object by choosing Insert, Form, Text Field. Name the field username in the Properties Inspector. 8. Place your cursor in the second cell of the second column and add a new text field form object by choosing Insert, Form, Text Field. Name the field password in the Properties Inspector. Also, change the Type value to Password in the Properties Inspector because this field will accommodate password entries. 9. Place your cursor in the fourth cell of the second column and add a submit button form object by choosing Insert, Form, Button. Immediately change the label to read Log In in the Properties Inspector. The result is shown in Figure 29.1. Figure 29.1. Add the Log In button form object to the page. [View full size image] 10. Save your work as login.asp, login.cfm, or login.php depending on the server model you're working with. Now test the results within the browser by pressing F12. As you'll notice, the page in the browser resembles a typical login page. Logging In the User Now that the basic structure of the login page has been created, you're ready to add the server behavior that facilitates the user login. If you're using ASP, ColdFusion, or PHP, you have an advantage in that Dreamweaver includes a server behavior that facilitates this process. To add this functionality, follow these steps: 1. With the login page still open, select the Log In User behavior from the User Authentication submenu by clicking the Add (+) button in the Server Behaviors panel. The Login User dialog appears. 2. Select the form1 option from the Get Input From Form menu. 3. Choose the username option from the Username Field menu. Also choose the password option from the Password Field menu. These are the fields within the form (form1) that the server behavior will compare when validation is performed. 4. Choose the connDorknozzle option from the Validate Using Connection menu. 5. Select the Employees option from the Table menu. 6. Choose the Username option from the Username Column menu. Also, choose the Pass option from the Password Column menu. These are the fields in the database table that the form values (specified in step 3) will be compared against. 7. Type the value index.asp, index.cfm, or index.php (depending on the server model you are using) in the If Login Succeeds, Go to text box. Also type the value login.asp, login.cfm, or login.php in the If Login Fails, Go To text box. Later, you'll see how to customize this value to create custom error messages for the user. 8. Make sure that the Username and Password radio button is selected in the Restrict Access Based On radio button group. The result of the completely formatted Log In User dialog box resembles Figure 29.2.