This article explains how to pass a variable from one form to another in Microsoft FrontPage by using Active Server Pages (ASP).
Pass a Variable from One Form to Another
To pass a variable from one form to another by using ASP, follow these steps:
- Start FrontPage.
- Open two new pages, save one as Form1.asp, and then save the other as Form2.asp.
- On Form1.asp, point to Form on the Insert menu, and then click One-Line Text Box.
- Double-click the form, type Test in the Name box, and then click OK.
- Right-click the form, and then click Form Properties.
- In the Form Properties dialog box, click Send to Other, and then click Options.
- In the Action box, type Form2.asp.
- In the Method box, type Post, and then click OK.
- Click OK to exit Form Properties.
- On the File menu of Form1.asp, click Save.
- Switch to Form2.asp.
- Click the Normal tab on the bottom-left corner of the page (if you are not already in Normal view.)
- On the Insert menu, point to Form, and then click One-Line Text Box.
- Double-click the text box.
- In the Text Box Properties dialog box, type Test2 in the Name box.
- In the Value type box, type
<% =Request.Form("Test") %>, and then click OK.
- On the File menu of Form2.asp, click Save.
- Switch to Form1.asp, and then click the Preview tab on the bottom of the page.
- 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.