Adobe 38040334 - Dreamweaver CS3 User Manual page 646

Pc
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

You can add the final two basic building blocks of an update page separately using the form tools and the Server
Behaviors panel.
See also
"Retrieve the record to update" on page 638
"Creating forms" on page 600
Add an HTML form to an update page
Create a page (File > New > Blank Page). This becomes your update page.
1
Lay out your page using the Dreamweaver design tools.
2
Add an HTML form by placing the insertion point where you want the form to appear and selecting Insert >
3
Form > Form.
An empty form is created on the page. You may have to enable Invisible Elements (View > Visual Aids > Invisible
Elements) to see the form's boundaries, which are represented by thin red lines.
Name the HTML form by clicking the
4
opening the Property inspector (Window > Properties), and entering a name in the Form Name box.
You don't have to specify an
action
when the user clicks the Submit button. The Update Record server behavior sets these attributes for you.
Add a form object such as a text field (Insert > Form > Text Field) for each column you want to update in the
5
database table.
The form objects are for data entry. Text fields are common for this purpose, but you can also use menus, options,
and radio buttons.
Each form object should have a corresponding column in the recordset you defined earlier. The only exception is the
unique key column, which should have no corresponding form object.
Add a Submit button to the form (Insert > Form > Button).
6
You can change the label of the Submit button by selecting the button, opening the Property inspector (Window >
Properties), and entering a new value in the Label box.
Display the record in the form
1
Make sure you defined a recordset to hold the record the user wants to update.
See "Retrieve the record to update" on page 638.
Bind each form object to data in the recordset, as described in the following topics:
2
"Display dynamic content in HTML text fields" on page 609
"Dynamically preselect an HTML check box" on page 610
"Dynamically preselect an HTML radio button" on page 610
"Insert or change a dynamic HTML form menu" on page 608
"Make existing HTML form menus dynamic" on page 609
tag at the bottom of the Document window to select the form,
<form>
or
attribute for the form to tell it where and how to send the record data
method
September 4, 2007
DREAMWEAVER CS3
639
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents