FrontPage 2003 How To

×

Please Note:

FrontPage 2003 is no longer supported for Fpweb.net managed hosting clients. However, we continue to offer online help & support resources for Microsoft® FrontPage in our expansive Support Achive.

How To Use Hidden Fields in a Form with Microsoft® Office FrontPage 2003

This step-by-step article describes how to use hidden fields in your forms.

When a user uses a Web browser to view a form, and then types information in the fields on the form, when the user submits the form, the browser passes the values that the user has typed in each of the form fields to the form handler. The <form> tag’s action attribute specifies the value that the browser passes to the form handler.

For example, if your form field is a text box, the browser sends the values of each of the form fields between the <form> and the </form> tags to the form handler. The Save Results Form Handler and the Registration Form Handler are examples of form handlers.

  • Registration Form Handler

    With the Registration Form Handler, you can automatically register users for access to a service. The Registration component adds the user to the authentication databases of the service. The Registration component can then gather information from the form and store the information in one of several formats, such as HTML or ASCII. You can access the Registration component from the Form Properties dialog box.

  • Save Results Form Handler

    The Save Results Form Handler gathers information from a form and stores the information in one of several formats, such as HTML or ASCII. When you submit the form, the Save Results Form Handler appends the form information to a specified file in a specified format. You can access the Save Results Form Handler from the Form Properties dialog box.

Some form fields may be hidden when you view the form. You can assign values to the hidden form fields and pass the values to the form handler. For example, if you have many forms that save results to a common email address or results file, you can use a hidden field on each form to identify each form by a unique number or name. The hidden field in the form results tells you from what form the results came.

Adding Hidden Form Fields

To create hidden fields in your forms, follow these steps:

  1. Start FrontPage, and then open the page that contains your form.
  2. Right-click the form, and then click Form Properties.
  3. In the Form Properties dialog box, click Advanced, and then click Add.
  4. In the Name box, type the name of the new hidden field.
  5. In the Value box, type the value that you want to be sent to the form handler.
  6. Click OK, click OK, and then click OK again.
  7. Click File, and then click Save.

Use Hidden Form Fields with the Registration Form Handler

To use the Registration Form Handler to save hidden fields, follow these steps:

  1. Right-click the form, and then click Form Properties.
  2. In the Form Properties dialog box, click Options.
  3. Click the Saved Fields tab.
  4. In the Form Fields to Save box, type the hidden fields that you want to use.
  5. Click Save All to save all the fields, including the hidden fields, click OK, and then click OK.

REFERENCES

For additional information, click the following article numbers to view the articles in the Microsoft® Knowledge Base:

260535 – FP2000: Cannot Change the Hidden Form Field Values

194156 – FP98: How to Create a Registration Web

193955 – FP98: Overview of FrontPage Components

177092 – FP: Overview of FrontPage Discussion Web Architecture

197735 – FP2000: No Access to Form Properties by Right-Clicking Form Field

183049 – FP98: Save Results Form Handler and Four-Digit Year Format

197605 – FP2000: [FrontPage Save Results Component] Appears Instead of Form

The information in this article applies to:

  • Microsoft® Office FrontPage 2003

Microsoft® Knowledge Base Article – 825546


Our 24/7 support team is here to help with dedicated Windows hosting services.