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:

  • Microsoft FrontPage 2000

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.

  1. Start Microsoft FrontPage.
  2. On the File menu, point to New, and then click Web.
  3. In the New dialog box, click One Page Web, and then click OK.
  4. Click the New Page icon.
  5. On the File menu, click Save As.
  6. In the Save as box, type one.htm.and then Click Save.
  7. Repeat steps 3 through 5 to create the following pages:
    • two.asp
    • three.htm
back to the top

Set Form and Action Properties

  1. Switch to one.htm. On the Insert menu, point to Form, and then click One Line Text Box.
  2. Double-click the text box, in the Name box, type fname, and then click OK.
  3. Right-click a blank space on the form, and then click Form Properties on the shortcut menu.
  4. 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.
  5. In the Action box, type two.asp, and then verify that the text in the Method box is "POST".
  6. Click OK, and then click OK in the Form Properties dialog box.
  7. Click the empty space to the left of the text box, and then type First Name:.
  8. On the File menu, click Save.
back to the top

Set E-mail Address and Link Properties

  1. Switch to three.htm.
  2. On the Insert menu, point to Form, and then click One Line Text Box.
  3. Double-click the text box, type lname in the Name box, and then click OK.
  4. Right-click a blank space on the form, and then click Form Properties on the shortcut menu.
  5. 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.
  6. Click Advanced, and then click Add to add a hidden field.
  7. In the Name box, type fname.
  8. In the Value box, type:

    <%=request.form("fname")%>

  9. Click OK, and then click OK again to close the Form Properties dialog box.
  10. Click the empty space to the left of the text box, and then type Last Name:.
  11. On the File menu, click Save.
  12. Switch to two.asp.
  13. On the Insert menu, point to Component, and then click Include Page.
  14. In the Page to include box, type three.htm, and then click OK.
  15. Switch to one.htm, and then click Preview in the lower left corner of the page.
  16. Type some text in the First Name box, and then click Submit.
  17. Switch to two.asp, type some text in the Last Name box, and then click Submit.
back to the top

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