FIGURE 23-14
You don??™t need to define a recordset for an insert record page.
You can save a step in the Insert Record server behavior setup by naming your form elements
the same as their relevant data source fields. Dreamweaver automatically assigns the form elements
to any data fields with matching names. Unfortunately, this process could expose the field names in
your database and give hackers more information about your database than you??™d like them to know.
After you??™ve constructed your table inside the form and placed the form elements, follow these steps to add
the Insert Record server behavior:
1. From the Server Behaviors panel, choose Insert Record. The Insert Record dialog box appears.
2. From the Insert Record dialog box, choose a connection from the Connection drop-down list. If
you need to establish a new connection, click Define.
3. Select the data table you want to use from the Insert Into Table list.
4. Enter the path to the destination page in the After Inserting, Go To field, or click the Browse button
to locate the file. It??™s important to select a confirmation or other page for users to go to after
the form is submitted. If you don??™t, there is no feedback to the user, and no change is apparent.
TIP TIP
748
Incorporating Dynamic Data Part IV
5.
Pages:
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301