Back Table of ContentsMainIndex Next
LoginGeneralMapsAccessVolumes



Managing HTML Forms

The Micro Webserver comes with a form managing utility program file called FormBuilder.exe. You can use one of the sample templates to create your forms or you can design your own from scratch. The Form Builder application must be run from a Windows 95 or Windows NT 4.x operating system.

The Form Builder application is a tool that lets you create HTML forms for the Micro Webserver that contain various screen elements (buttons, boxes, tables, graphics, text fields etc.) that people can fill out and submit complete with links to other HTML pages. You can then open the database files created by these forms with your browser.

Note The Micro Webserver does not support any other scripting language (such as CGI or Perl) for creating forms. If you need pages with input fields, you must create the forms using Form Builder.

When you create a form using the Form Builder application, several program types are created. For example, if you create a form that you save as SAMPLE, the following files are created:

General Tips for Using Form Builder

The process for creating forms is as follows:

  1. Run the Form Builder application.
  2. Select each element that you want to add to your form using the appropriate tabs.
  3. Preview the affect of each step by clicking the Preview button on each tab.
  4. Reorder the elements and add page breaks between them using the Created Controls tab.
  5. Preview the finalized form by clicking the Preview button on the Created Controls tab.
  6. Save the form.
  7. FTP the form to the server of choice using the FTP button.
  8. As users enter data to your form, browse the database file using your Web browser.

Starting the Form Builder

Browse the Micro Webserver Home Page as described in the section, "Browsing the Server". Select the productivity tools icon and select the Form Builder icon. You can also run the Form Builder by clicking the Form Builder icon from the Cisco Micro Webserver program group accessed through the Start menu. The Form Builder main window appears:

You now can either open an existing form or create a new one.

Opening an Existing Form

  1. Select the File menu and click Open. The Open dialog appears:
  2. Select the existing form file (with a .swz extension) from the list and click Open or double-click the desired file name. The Form Builder tabs appear:
  3. Step through each tab and change the data to reflect your application as described in the section, "Creating a New HTML Form".
  4. Select the File menu and choose Save As... The Save As dialog appears.
  5. Enter a unique, valid file name in the File name field.
  6. Click Save to save your new file.

Creating a New HTML Form

  1. Select the File menu and choose New. The Form Builder tabs appear:
  2. Enter the heading that you want to appear at the top of the form in the Heading field.
  3. Enter a background image file name in the Background Image field. This file must be a .GIF or .JPG file. You can also browse to locate this file by clicking Browse.
  4. Enter a label that you want to display with the Submit button in the Submit Button Label field.
  5. Enter a label that you want to display with the Reset button in the Reset Button Label field. You can preview the effect of this tab, at any time, by clicking Preview.

Setting Heading Colors, Fonts and Background Colors

  1. From the Form Settings tab of the Form Builder dialog, click Advanced. The Advanced Form Options dialog appears:
  2. Select a foreground color for the heading by clicking the Foreground radio button and clicking Colors.... The Color dialog appears:
  3. Choose a Basic color to apply and click OK, or Click Define Custom Colors to set your own color. The Color (Custom Color) dialog appears. Select a color from the matrix and click Add to Custom Colors. The colors are added to the custom colors buttons on the left of the dialog. In the future you can select these colors to apply to foreground text and backgrounds. When you have added all of the colors you may want, click the color you want to apply to the heading text and click OK.
  4. Choose the Background radio button and follow the same procedure to select the background color for your page.
  5. Click OK. You can preview the effect of this tab, at any time, by clicking Preview.

Defining Paragraphs and Text Controls

  1. Select the Text Controls tab. The Text Controls tab appears:
  2. Enter a description to identify the paragraph you want in the Descriptor field.
  3. If you want this to be an active hotspot link, check the Link To check box and enter the URL that you want to link to in the Link To field.
  4. Enter the text that you want for this paragraph in the large input field on the bottom of the dialog.
  5. Click Advanced to set paragraph fonts, alignments and colors. The Advanced Text Options dialog appears:
  6. Select the Font you want to apply from the Font drop-down list.
  7. Select the color to apply to the text by clicking the Colors button and selecting a color.
  8. Choose an alignment to apply to this paragraph from the Alignment drop-down list.
  9. Click OK to apply these attributes to the selected paragraph. The Text Controls tab appears.
  10. Click Add to add this paragraph to the list of available paragraphs.
  11. Enter as many paragraphs as you want for this form, each time using a different descriptor in the Descriptor field and clicking Add after each paragraph. In the future you can select these paragraphs from the Available Paragraph drop-down list. You can preview the effect of this tab, at any time, by clicking Preview.

Defining Text Input Fields

You can define the text input fields with specific labels, lengths, and password protection using the Text Input tab:

  1. Select the Text Input tab. The Text Input tab appears:
  2. Enter a description that will help you to identify it in the future in the Descriptor field.
  3. Enter a label that you want to display on the form with the input field in the Label field.
  4. Enter the maximum character length of the field in the Max length field.
  5. Select a group to associate the text control with from the Group drop-down list.
  6. Select a key field that you want to list on the index page from the Key Field drop-down list.
  7. Check the Password Data Type check box if you want password protection for this field.
  8. Click Add to add this input field to the Available Input Fields drop-down list.
  9. Repeat steps 1 through 6 for as many input fields as you need. Each time changing the Descriptor and Label fields and clicking Add. This will add these items to the Available Input Fields drop-down list for future selection. You can preview the effect of this tab, at any time, by clicking Preview.

Adding Comment Input Fields

You can add comment input fields to your forms using the Comment Box tab:

  1. Select the Comment Box tab. The Comment Box tab appears:
  2. Enter a name that will help you identify the comment field in the future in the Descriptor field.
  3. Enter the number of columns you want for the block in the Number of Columns field.
  4. Enter the number of rows you want for the block in the Number of Rows field.
  5. Click Add to add this comment input field to the Available Comments drop-down list.

Adding Images

  1. Select the Images tab. The Images tab appears:
  2. Enter the name of the image file (.GIF or .JPG), with the full path name, in the File Name edit box. You can also browse to select this file by clicking Browse.
  3. Select an alignment from the Alignment drop-down list.
  4. Enter a description that will help you to identify this image in the Descriptor field.
  5. If you want this image to link to a specific URL, check the Link To check box and enter the URL in the Link To field.
  6. Click Add to add this image to your Available Images drop-down list.

Deleting Images

  1. Select the Images tab. The Images tab appears:
  2. Select the name of the image that you want to delete from the Available Images drop-down list.
  3. Click Delete. The image is deleted from the Available Images drop-down list.

Adding Check Boxes

  1. Select the Check Box tab. The Check Box tab appears:
  2. Enter the name of the check box in the Item field.
  3. Check the Check State check box if you want the default state to be checked.
  4. Enter a description that will help you to remember the function of this check box in the Descriptor field.
  5. Click the >>> button to add this check box to the Item List. In the future, you can just select this check box from the Item List.
  6. Click the Add button to add this check box to the Available Check drop-down list.

Removing a Check Box

  1. Select the Check Box tab. The Check Box tab appears:
  2. Select a check box from the Available Check drop-down list.
  3. Click Delete. The check box is deleted from the list.

Adding Radio Buttons

  1. Select the Radio Buttons tab. The Radio Buttons tab appears:
  2. Enter the name of the radio button in the Item field.
  3. Click the >>> button to add the radio button to the list. The radio button appears in the Item List table.
  4. Click Add. The list is added to the Available Radio Buttons drop-down list.
  5. Repeat steps 1 through 4 for as many radio buttons as you want.

Deleting a Radio Button

  1. Select the Radio Buttons tab. The Radio buttons tab appears:
  2. Select the radio button you want to delete from the Available Radio Buttons drop-down list.
  3. Click Delete. The radio button is removed from the list.

Creating Lists

  1. Select the List Box tab. The List Box tab appears:
  2. Enter a description for the entire list in the Descriptor field.
  3. Enter the list item text in the Item field.
  4. Click the >>> button to add the text to the list. The text appears in the Item List table.
  5. Select whether you want the list numbered or bulleted by clicking the appropriate radio button in the Appearance group.

Note The state (numbered or unnumbered) that the radio buttons in the Appearance group are in at the time you click the Add button determines whether the list is numbered or bulleted.

  1. Click Add. The list is added to the Available List Boxes drop-down list.
  2. Repeat steps 1 through 6 for as many lists as you want.

Deleting Lists

  1. Select the List Box tab. The List Box tab appears:
  2. Select the list that you want to delete from the Available List Boxes drop-down list.
  3. Click Delete button. The list is deleted from the Available List Boxes drop-down list.

Adding Drop-Down Lists (Choice Boxes)

  1. Select the Choice Box tab. The Choice Box tab appears:
  2. Enter a description for your drop-down list in the Descriptor field.
  3. Enter the text that you want for the first item in the drop-down list in the Item field.
  4. Click the >>> button.
  5. Enter the subsequent text for your list in the Item field and click the >>> button for each item you want in the list. If you make a mistake or want to change an item, select the item and click Remove.
  6. When you have the list the way you want it, click Add. The list is added to the Available Choice drop-down list.

Removing a Drop-Down List (Choice Box)

  1. Select the Choice Box tab. The Choice Box tab appears:
  2. Select the list you want to remove from the Available Choice drop-down list.
  3. Click Delete. The item is removed from the list.

Adding Tables

  1. Select the Table tab. The Table tab appears:
  2. Enter a description that will help you identify the table in the Descriptor field.
  3. Enter text that you want to appear in the columns and rows. You must fill in continuous blocks of columns and rows in order for the text to appear in the table.
  4. Click Add. The table is added to the list of tables in the Available Tables drop-down list.

Removing a Table

  1. Select the Table tab. The Table tab appears:
  2. Select the table that you want to delete from the Available Tables drop-down list.
  3. Click Delete. The table is removed from the list.

Building the Forms

  1. After you have added (or edited) all of the elements that you want in your form, select the Created Controls tab. The Created Controls tab appears:
  2. All of the descriptors that you have added appear in the Control Order list. You can move them up or down using the Move Up and Move Down buttons. You can also add a <BREAK> tag forcing a new line by clicking the Add Break button. You can remove a <BREAK> tag by clicking the Remove Break button. When the order and breaks are as you want them, click Preview to view the form in your browser.
  3. Save your form by clicking Save (or Save As) from the File menu.

Transferring the Form to the Server

After you have completed the form, you must transfer the form to the server:

  1. With the form open (displaying in the main window), click the FTP button. The File Tranfer Utility appears:
  2. All files that must be transferred to the server are automatically selected.
  3. Click Connect. Follow the instructions in the section, "Transferring Files" to log into the server and transfer the form files to the server.



Back Table of ContentsMainIndex Next
LoginGeneralMapsAccessVolumes


Copyright © 1996, Cisco Systems . All rights reserved.