Microsoft KB Archive/194074

= FP98: How to Use Hidden Fields in a Form With FrontPage =

Article ID: 194074

Article Last Modified on 10/3/2001

-

APPLIES TO


 * Microsoft FrontPage 98 Standard Edition

-



This article was previously published under Q194074



For a Microsoft FrontPage 2002 version of this article, see 292622.

For a Microsoft FrontPage 2000 version of this article, see 183784.

For a Microsoft FrontPage 97 and earlier version of this article, see 197741.



SUMMARY
This article describes how to use hidden fields in your forms.



MORE INFORMATION
The Save Results Form Handler and the Registration Form Handler are both examples of form handlers. When a form is submitted in the browser, the values of each form field are passed to the form handler (specified by the action attribute of the tag). For example, if your form field is a text box, the value sent to the form handler is the text entered in the text box.

The values of each of the form fields between the and tags will be sent to the form handler. Not all form fields are visible however. Some form fields are hidden. Even so you can assign values to these hidden form fields and pass the values to the form handler.

This can be especially useful when you have multiple forms saving results to a common e-mail address or results file. You could use a hidden field on each form that identifies the form by a unique number or name. The hidden fields in the form results would then indicate from which form the results came.

To create hidden fields in your forms, follow these steps.  Open the page that contains your form in the FrontPage Editor. Right-click a form field and click Form Properties on the menu that appears. In the Form Properties dialog box, click Advanced. Click Add.

 In the Name box, type the name of the new hidden field. In the Value box, type the value to be sent to the form handler.</li></ol> </li> Click OK three times.</li> On the File menu, click Save.</li></ol>

Using Hidden Form Fields with the Registration Form Handler
You must take a few extra steps in order to save hidden fields using the Registration Form Handler:
 * 1) Right-click the form and then click Form Properties on the menu that appears.
 * 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 you want to use.
 * 5) Click Save All (saves all fields including hidden fields) or click OK.
 * 6) Click OK in the Form Properties dialog box.

For additional information, please see the following articles in the Microsoft Knowledge Base:

194156 FP: How to Create a Registration Web

179188 FP98: [FrontPage Save Results Component] Shows Instead of Form

195955 FP98: Overview of FrontPage Components (WebBot Components)

177092 FP97: Overview of a FrontPage Discussion Web Architecture

193959 FP98: No Access to Form Properties by Right-Clicking Form Field

183749 FP98: Save Results Form Handler and Year 2000 Compliance

Additional query words: 98

Keywords: kbhowto KB194074

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.