Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

HOW TO: Pass a Hidden Value from One Page to Another in FrontPage 2000


View products that this article applies to.

This article was previously published under Q265189

↑ Back to the top


Summary

This article describes how use Microsoft FrontPage 2000 to pass a hidden value from one page in a web and then use that value to query another page in the web.

Pass a Hidden Value

To pass a hidden value from one page in a web and then use that value to query another page, follow these steps:
  1. Open the file that contains the form from which the hidden value must be passed.
  2. Right-click the form, and then click Form Properties.
  3. In the Form Properties dialog box, click Advanced.
  4. In the Advanced Form Properties dialog box, click Add.
  5. In the Name/Value Pair dialog box, type the name of the field that needs to be passed in the Name box.
  6. If the first form uses the POST method, type the following data in the Value box:
    <% = request("field_name") %>
    -or-

    If the first form uses the GET method, type the following data in the Value box:
    <% = request.querystring("field_name") %>
The resulting Hypertext Markup Language (HTML) is a hidden tag that looks like one of the following:
  • <input type="hidden" name="form_field" value="<% =request("form_field") %>">

  • <input type="hidden" name="form_field" value="<% =request.querystring("form_field") %>">

↑ Back to the top


Keywords: KB265189, kbhowtomaster, kbhowto

↑ Back to the top

Article Info
Article ID : 265189
Revision : 2
Created on : 10/27/2002
Published on : 10/27/2002
Exists online : False
Views : 211