SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1288 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


Like the common master-detail application, Dreamweaver offers both a manual and an automatic method of
performing the most common management tasks. There are Application objects for inserting and for updating
records. Both methods are detailed in the following sections.
Inserting data
To insert records into a data source, you need the following:
n An active page
n A form placed on the page
747
Crafting Multiple-Page Applications 23
n One form element per data source field
n A Submit button
n An Insert Record server behavior
No recordset or other data source is necessary, nor are there are any special requirements for the form
itself??”you don??™t even have to specify an action or a method. The Insert Record server behavior handles
most of the coding chores.
Form elements are typically arranged in a table with labels for each field, as shown in Figure 23-14.
Naturally, you can format the table however you like; I generally prefer a two-column table with the labels
in the first column, right-aligned, and the form elements in the second column, left-aligned. It??™s best to
name the form elements so that you can identify them easily and ensure that each element is unique. A reset
button is optional??”but recommended if the form has many fields.


Pages:
1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300