decorative banner

Setting up the form element


    The Form icon identifies the current Web page or section of a Web page as a form and instructs the browser where and how to return form information for processing. The content of your form must be contained in the box that surrounds the Form icon in the document window. If you are using an HTML table to design your form, be sure to put the Table icon in the box that surrounds the Form icon in the document window. The Form icon must precede any other form elements.

To set up a form element:

  1. Drag the Form icon from the Forms set in the Objects palette, or double-click the icon.
  2. In the Form Inspector, type a unique form name in the Name text box. This is especially important if you have more than one form on your page, or use CGI scripting.
  3. In the Action text box, link to or type the directory and file name of the CGI script where the information will be sent when the viewer clicks the Submit button.
  4. Note: Check with your Internet service provider for information on CGI scripts available to you and the location of scripts on the server. Avoid using a mailto link in the form's action because your viewers may not have their browsers configured properly for sending the data to the server.

  5. If you are using frames, select a target location in the destination URL from the Target pop-up menu. The frame set page must be open for the Target menu to be active.
  6. If your form is embedded in a frame set and you want to control where the HTML page returned by the Web server appears, choose a target location from the Target pop-up menu. In addition to the names you have given to individual frames within a frame set, you can set the following options:

    • _top to load the page into the full browser window, replacing any current frame sets.
    • _parent to load the page into the parent frame set of the form.
    • _self to load the page into the window or frame that previously held the form.
    • _blank to load the page into a new unnamed browser window.
  7. Select an encoding method from the Encode pop-up menu:
    • Default and application/x-www-form-url-encoded are the same. These use the ASCII character set.
    • Multipart/form-data tells the server where the files begin and end.
  8. In the Method pop-up menu, determine how the form information will be sent:
    • Post returns data entered by the viewer information separately from the Web page.
    • Get sends the viewer's entries appended to the URL in the Action text box.
    • Default omits the Method attribute.

    Note: It is recommended that you use the Post option. Using Get to append information to the destination file may exceed the URL length limit and possibly cause data loss.