HOW TO: Pass a Value from One Form to Another by Using Active Server Pages and FrontPage 2000 (308697)



The information in this article applies to:

  • Microsoft FrontPage 2000

This article was previously published under Q308697

SUMMARY

This article explains how to pass a variable from one form to another in Microsoft FrontPage by using Active Server Pages (ASP).

back to the top

Pass a Variable from One Form to Another

To pass a variable from one form to another by using ASP, follow these steps:
  1. Start FrontPage.
  2. Open two new pages, save one as Form1.asp, and then save the other as Form2.asp.
  3. On Form1.asp, point to Form on the Insert menu, and then click One-Line Text Box.
  4. Double-click the form, type Test in the Name box, and then click OK.
  5. Right-click the form, and then click Form Properties.
  6. In the Form Properties dialog box, click Send to Other, and then click Options.
  7. In the Action box, type Form2.asp.
  8. In the Method box, type Post, and then click OK.
  9. Click OK to exit Form Properties.
  10. On the File menu of Form1.asp, click Save.
  11. Switch to Form2.asp.
  12. Click the Normal tab on the bottom-left corner of the page (if you are not already in Normal view.)
  13. On the Insert menu, point to Form, and then click One-Line Text Box.
  14. Double-click the text box.
  15. In the Text Box Properties dialog box, type Test2 in the Name box.
  16. In the Value type box, type <% =Request.Form("Test") %>, and then click OK.
  17. On the File menu of Form2.asp, click Save.
  18. Switch to Form1.asp, and then click the Preview tab on the bottom of the page.
  19. Type some text in the text box, and then click Submit. The text that you submit in this step is displayed in the Form2.asp text box.
back to the top

REFERENCES

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

175167 HOWTO: Store State in Active Server Pages Applications

back to the top

Modification Type:MinorLast Reviewed:1/7/2006
Keywords:kbhowto kbHOWTOmaster KB308697 kbAudITPro