beautypg.com

Single radio button object options, Menu options, Insert file-upload fields – Adobe Dreamweaver CC 2015 User Manual

Page 631

background image

624

Dynamic sites, pages and web forms

Last updated 6/3/2015

Class

Applies Cascading Style Sheets (CSS) rules to the object.

Single radio button object options

Checked Value

Sets the value to be sent to the server when the radio button is selected. For example, you might type

skiing in the Checked Value box to indicate a user chose skiing.

Initial State

Determines whether the radio button is selected when the form loads in the browser.

Dynamic

Lets the server dynamically determine the initial state of the radio button. For example, you can use radio

buttons to visually present information stored in a database record. At design time, you don’t know that information.
At run time the server reads the database record and checks the radio button if the value matches one you specified.

Class

Applies CSS rules to the object.

Menu options

List/Menu

Assigns a name to the menu. The name must be unique.

Type

Indicates whether the menu drops down when clicked (the Menu option) or displays a scrollable list of items (the

List option). Select the Menu option if you want only one option to be visible when the form is displayed in a browser.
To display the other choices, the user must click the down arrow.

Select the List option to list some or all the options when the form is displayed in a browser, to let users select multiple
items.

Height

(List type only) Sets the number of items displayed in the menu.

Selections

(List type only) Indicates whether the user can select multiple items from the list.

List Values

Opens a dialog box that lets you add the items to a form menu:

1

Use the Plus (+) and Minus (–) buttons to add and remove items in the list.

2

Enter label text and an optional value for each menu item.

Each item in the list has a label (the text that appears in the list) and a value (the value that is sent to the processing
application if the item is selected). If no value is specified, the label is sent to the processing application instead.

3

Use the up and down arrow buttons to rearrange items in the list.

Items appear in the menu in the same order as they appear in the List Values dialog box. The first item on the list is
the selected item when the page is loaded in a browser.

Dynamic

Lets the server dynamically select an item in the menu when it is first displayed.

Class

Lets you apply CSS rules to the object.

Initially Selected

Sets the items selected in the list by default. Click the item or items in the list.

Insert file-upload fields

You can create a file-upload field that lets users select a file on their computer—such as a word processing document
or graphics file—and upload the file to the server. A file field looks like other text fields except it also contains a Browse
button. The user either manually enters the path to the file they want to upload, or uses the Browse button to locate and
select the file.

Before you can use file-upload fields, you must have a server-side script or a page capable of handling file submissions.
Consult the documentation of the server technology you use to process form data. For example, if you use PHP, see
“Handling files uploads” in the online PHP Manual at

http://us2.php.net/features.file-upload.php

.