[Home]

Topics

Tutorial

HTML

Dreamweaver

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

s


Tutorial Dreamweaver - Working with Forms


To create a form

  1. Do one of the following:
    • Place the insertion where you want the form to appear, and choose Insert > Form.
    • Place the insertion point where you want the form to appear, and click the Form button on the Forms panel of the Object palette.
    • Drag the Form button to the desired location on the page. If there is no visible result, check that View > Invisible Element is on.
  2. Select the form and set form properties in the Property inspector. Choose from the following options:
  • Form name assigns a name to the form. Naming a form makes it possible to control it with a scripting language, such as JavaScript or VBScript.
  • Action identifies the server-side application that processes the form information, specified as a URL. Click the folder icon to locate the application, or enter the application's path.
  • Method defines how the form data is handled.
  1. In the Property inspector, choose one of the following methods to define how the form data is handled:
  • Get appends from values to the URL and sends the server a GET request. Because URLs are limited to 8192 characters, don't use the GET method with long forms.
  • Post sends the form values in the body of a message and sends the server a POST request.
  • Default uses the browser's default method (generally GET).

To add an object to a form

  1. Do one of the following:
    • Place the insertion point inside the form boundary, and choose an object from the Insert > Form Object menu.
    • Place the insertion point inside the form boundary, and click an object button on the Forms panel of the Object palette.
    • Drag an object button to the desired location inside the form boundary.
  2. Specify the properties for the object in the Property inspector (choose Window > Properties to display the Property inspector if it is not already open).
  • Text fields accept any type of text, alphabetic or numeric. The entered text can be displayed as a single line, as multiple lines, or as bullets or asterisks (for password protection).
  • Buttons perform tasks when clicked, such as submitting or resetting forms. You can enter a custom label for a button, or use one of the predefined labels.
  • Image fields can be used in place of Submit buttons.
  • Checkboxes allow multiple responses in a single group of options.
  • Radio buttons represent exclusive choices. Selecting a button within a group deselects all others in the group.
  • List/menu present a set of values from which users can choose. The object can present a pop-up menu, which appears only when user clicks the object's name (and which accepts only a single choice), or a list box, which always displays the values in a scrolling list (and which accepts more than one choice).
  • File fields let users browse to files on their hard disks and upload them as form data.
  • Hidden fields let you store information (such as recipient of form data or the subject of the form) that is not relevant to the user but that will be used by the application that processes the form.
  • Jump menu lets you insert in which each option links to a document or file.

  1. Type a label or descriptive text, if desired, next to the object.

up


back Working with Frames and Layers | Back to main pagenext


 

 

 

 

 

 

Copyrights Reserved © Web Publishing 2003

Assessment

  • Assignment 1
  • Assignment 2
  • Quiz 1
  • Quiz 2
  • Project

 

Announcement

To all my students!

Please visit this web site regularly.