FP98: How to Use Hidden Fields in a Form With FrontPageID: Q194074
|
This article describes how to use hidden fields in your forms.
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 <form> 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 <form> and </form> 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.
Q194156 FP: How to Create a Registration Web
Q179188 FP98: [FrontPage Save Results Component] Shows Instead of Form
Q195955 FP98: Overview of FrontPage Components (WebBot Components)
Q177092 FP97: Overview of a FrontPage Discussion Web Architecture
Q193959 FP98: No Access to Form Properties by Right-Clicking Form Field
Q183749 FP98: Save Results Form Handler and Year 2000 Compliance
Additional query words: 98
Keywords : fpedit
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: July 30, 1999