In FrontPage, you can create a form and then save form results to a database. When a visitor to your Web site fills out and submits the form, FrontPage enters the data directly into the database. If you do not have a database in which to store form results, FrontPage can create a new Microsoft Access database for you. FrontPage uses the fields that you have defined on your form as the columns for the table.
NOTE: You must have the following Microsoft products installed on your computer to complete the steps described in this article:
- Microsoft FrontPage 2000
- Microsoft Access 2000
- Microsoft Personal Web Server (PWS) or Microsoft Internet Information Services (IIS)
- FrontPage Server Extensions
Create a Form that Submits Results to a FrontPage Generated Database
To create a form that submits results to a FrontPage-generated database, follow these steps:- Start FrontPage, and then open your server-based Web.
- Open the page on which you want to insert the form.
-or-
On the File menu, point to New, and then click Page to create a new page. In the New dialog box, click Normal Page, and then click OK. - On the Insert menu, point to Form, and then click Form.
- Position the pointer in the form, and then press ENTER several times to create space for adding text and text boxes to your form.
- Place your pointer in the location that you want on the form, and then type First Name.
- On the Insert menu, point to Form, and then click One-Line Text Box.
- Press ENTER to create a new line.
- Type Last Name, point to Form on the Insert menu, and then click One-Line Text Box.
- Right-click anywhere on the form, and then click Form Properties.
- Click Send to database, and then click Options.
- In the Options for Saving Results to Database dialog box, click Create Database.
After FrontPage has finished creating the Access database for you, you receive a confirmation message similar to the following:FrontPage has successfully created a database for you.
The database can be found at "/fpdb/database_name.mdb.
When using the Database Results Wizard, use the data connection "database_name.mdb". - Click OK to the message, and then click OK to close the dialog boxes.
- On the File menu, click Save, type a name for your form page, and then click Save.
If the extension of the current page is .htm, FrontPage prompts you to rename the file with the .asp extension for the file to work correctly.
Note that FrontPage also creates a Global.asa file that connects your Web to the database. - Under Folder List, click the form page that you created, and then click Preview in Browser on the File menu.
- Test your form. Type your first name and last name in the First Name and Last Name boxes, and then click Submit.
A Form Confirmation page is displayed in your browser, which displays the results of your submission.