Microsoft KB Archive/308697

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

Article ID: 308697

Article Last Modified on 1/7/2006

-

APPLIES TO


 * Microsoft FrontPage 2000 Standard Edition

-



This article was previously published under Q308697



IN THIS TASK
SUMMARY
 * Pass a Variable from One Form to Another

REFERENCES



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(&quot;Test&quot;) %>, 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

