HOW TO: Link Data on Multiple Forms as ASP Pages and Submit to E-Mail as .htm page Using FrontPage 2000 (310771)
The information in this article applies to:
This article was previously published under Q310771 SUMMARY
This article describes how to submit data from one page to another and then to an e-mail address.
back to the top
Create .htm Files
To link data on multiple forms as ASP pages and submit to an e-mail address, follow these steps. - Start Microsoft FrontPage.
- On the File menu, point to New, and then click Web.
- In the New dialog box, click One Page Web, and then click OK.
- Click the New Page icon.
- On the File menu, click Save As.
- In the Save as box, type one.htm.and then Click Save.
- Repeat steps 3 through 5 to create the following pages:
back to the top
Set Form and Action Properties- Switch to one.htm. On the Insert menu, point to Form, and then click One Line Text Box.
- Double-click the text box, in the Name box, type fname, and then click OK.
- Right-click a blank space on the form, and then click Form Properties on the shortcut menu.
- Click Send to other, verify that the text in the drop-down box reads Custom ISAPI, NSAPI, CGI, or ASP Script, and then click Options.
- In the Action box, type two.asp, and then verify that the text in the Method box is "POST".
- Click OK, and then click OK in the Form Properties dialog box.
- Click the empty space to the left of the text box, and then type First Name:.
- On the File menu, click Save.
back to the top
Set E-mail Address and Link Properties- Switch to three.htm.
- On the Insert menu, point to Form, and then click One Line Text Box.
- Double-click the text box, type lname in the Name box, and then click OK.
- Right-click a blank space on the form, and then click Form Properties on the shortcut menu.
- In the Form Properties dialog box, click Send to, and then in the E-mail address box, type the e-mail address to which you want to send the information.
- Click Advanced, and then click Add to add a hidden field.
- In the Name box, type fname.
- In the Value box, type:
<%=request.form("fname")%>
- Click OK, and then click OK again to close the Form Properties dialog box.
- Click the empty space to the left of the text box, and then type Last Name:.
- On the File menu, click Save.
- Switch to two.asp.
- On the Insert menu, point to Component, and then click Include Page.
- In the Page to include box, type three.htm, and then click OK.
- Switch to one.htm, and then click Preview in the lower left corner of the page.
- Type some text in the First Name box, and then click Submit.
- Switch to two.asp, type some text in the Last Name box, and then click Submit.
back to the top
Modification Type: | Minor | Last Reviewed: | 1/7/2006 |
---|
Keywords: | kbhowto kbHOWTOmaster KB310771 kbAudITPro |
---|
|