Creating the My Account Page Using ASP, ColdFusion, or PHP Now that you've added the functionality for employees to register on the site, you'll want to add more functionality to allow them to modify the information they provided. Suppose that an employee moved to a new location and you shipped a product to their old address. You could imagine the confusion. Fortunately, Dreamweaver provides a behavior in the Update Record server behavior that enables you to develop a page for user administrative purposes such as these. Using dynamic form objects in conjunction with the Update Record server behavior, employees can see the information that resides in the database in editable form objects. After an employee edits the appropriate information, they need only submit the form to update the information in the database. Creating the My Account Form Because all the information is placed into form objects, the My Account form will be constructed much the same way that the New User Registration form was. To create the My Account form, follow these steps: 1. Begin creating the My Account form by creating a new page from a template. From the File menu, select New, navigate to the Templates tab, and select the template named Template from the site you're working with. 2. Remove the Content text from the editable region. With your cursor still in the region, insert a new form by selecting Insert, Form, Form. 3. Let's add a table similar to the one we created in the New User Registration form. Choose Insert, Table; the Insert Table dialog appears. In the dialog, create a table that has 14 rows, 2 columns, a width of 450 pixels, and 0 border, cell padding, and cell spacing. Click OK to create the table. 4. Add all the appropriate content for personal information including billing/shipping information, and so on within the table. You can merge cells along the way to create the header. The result is shown in Figure 26.12. Figure 26.12. Add all appropriate content to the new table. [View full size image] 5. You are now ready to begin adding all the form objects for the My Account form. The following matrix shows the fields, the appropriate form objects to be inserted, and the unique names to be given to each of the form objects. Field Name Form Object Name EmployeeID Hidden Field employeeid Name Text Field name Username Text Field username Password Text Field password Email Text Field email Phone Text Field phonenumber Headshot Text Field headshotloc BillingShippingAddress Text Field billshipaddress BillingShippingCity Text Field billshipcity BillingShippingState Text Field billshipstate BillingShippingZip Text Field billshipzip Submit Button Submit The result of inserting all the form objects is shown in Figure 26.13. Figure 26.13. Insert all the form objects for the My Account page.