Microsoft KB Archive/310771

= HOW TO: Link Data on Multiple Forms as ASP Pages and Submit to E-Mail as .htm page Using FrontPage 2000 =

Article ID: 310771

Article Last Modified on 1/7/2006

-

APPLIES TO


 * Microsoft FrontPage 2000 Standard Edition

-



This article was previously published under Q310771



IN THIS TASK
SUMMARY
 * Create .htm Files
 * Set Form and Action Properties
 * Set E-mail Address and Link Properties



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:
 * 8) * two.asp
 * 9) * 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 &quot;POST&quot;.
 * 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
 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 .</li> In the Value box, type:

<%=request.form(&quot;fname&quot;)%>

</li> Click OK, and then click OK again to close the Form Properties dialog box.</li> Click the empty space to the left of the text box, and then type Last Name: .</li> On the File menu, click Save.</li> Switch to two.asp.</li> On the Insert menu, point to Component, and then click Include Page.</li> In the Page to include box, type three.htm, and then click OK.</li> Switch to one.htm, and then click Preview in the lower left corner of the page.</li> Type some text in the First Name box, and then click Submit.</li> Switch to two.asp, type some text in the Last Name box, and then click Submit.</li></ol>

back to the top

Additional query words: front page

Keywords: kbhowto kbhowtomaster KB310771

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.