Đang chuẩn bị liên kết để tải về tài liệu:
dreamweaver cs5 all in one for dummies phần 10

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Tạo một trang mới năng động hoặc mở một trang hiện có. 2. Trong bảng điều khiển Bindings, nhấp vào dấu cộng (+) biểu tượng, và sau đó chọn Recordset (Query) trong danh sách xuất hiện. Hộp thoại Recordset xuất hiện. Tùy thuộc vào loại trang năng động của bạn, hộp thoại có thể trông hơi khác nhau. | 162 Building a Record Insert Page Block by Block 3. To select the form click the form s boundaries or click the form tag in the bottom-left corner of the Document window. Selecting the form lets you modify that form s properties in the Properties inspector. 4. In the Properties inspector enter a name for the form in the Form ID field. You probably want to use something descriptive such as insert_form. Don t set the Action or Method fields because the Insert Record server behavior sets these fields for you. 5. Add a text field by choosing Insert Form Text Field. You can also add other form objects depending on the type of data that you want to insert into the database table. See Book II Chapter 7 for more on the different form objects. 6. In the Input Tag Accessibility Attributes dialog box enter a descriptive ID and a text label. 1. Optional Tweak the Style and Position settings as desired. 8. Click OK. 9. For each column that you allow the user to add data to repeat Steps 5-8. For the employee table example we added each field but arranged the fields in a slightly different order on the form. 10. Press Enter Windows or Return Mac to insert a new line so that the element appears on a separate line. You can also use a table element to align your fields see Book II Chapter 7 for more information . 11. Insert a submit button on the page by choosing Inserts Form1 - Button. If the Input Tag Accessibility Attributes dialog box appears click Cancel. 12. With the button selected change the Value text in the Properties inspector to Insert. The example form looks like Figure 3-4. Adding the Insert Record server behavior You have to add the Insert Record server behavior to your page so that it can process the data in the form submission. You must have an active database connection before you can add the Insert Record server behavior. See Book VII for details on setting up a database connection. Building a Record Insert Page Block bụ Block 763 ID Department First Name I I Last