Curricular Support Home / Resources / Tips and Guides / Creating Forms in FrontPage

How to Create a Form with FrontPage

In this tutorial, you will learn how to use Microsoft FrontPage XP 2003 for Windows to create forms for collecting data from your web pages.

Create a Form

First, you have to create a form area in your page. Form area is bounded in FrontPage with dashed line and initially contains Submit and Reset buttons. A new form area is created automatically when you insert any form field into the page without a form.

Your page now contains form area similar to this one:

forms/01.jpg

You can format the content of the form area as you need. If you enter new lines, images or text, the form area will grow with its content. You only have to be careful when you insert more form fields. You should always have your cursor inside the dashed form area in order to keep all fields in the same form.

More on the One-Line Text Box

rtextboxproperties.gif (3942 bytes)

You should always give meaningful names to all the fields in your page. After you publish the page on the web and somebody fills any information in this field, the name of the field will be recorded together with its value so you won't get lost while deciphering which value belongs to which field.

Here is an example of a form with two text box fields:

First name:
Last name:

Scrolling Text Box

Unlike the One-Line Text Box, the Scrolling Text Box can have more than one line.

rscrollingtextboxproperties.gif (4148 bytes)

Here is an example of a scrolling text box fields:

Write your comments here:

Check Box

Here is an example of a form with check box fields:

Select your interests:

Arts

Biology

Chemistry

Engineering

History

Math

Each check box is a separate form field, so you have to insert each of them separately.

rcheckboxproperties.gif (3645 bytes)

Radio Button

Radio buttons are used when you want the user to choose one of several options. Here is an example of a form with radio buttons:

Select your category:

Undergraduate Student

Graduate Student

Faculty

Staff

Each radio button is a separate form field and you have to insert each of them separately, but together they form a group in which at most one radio button can be selected at a time.

rradiobuttonproperties.gif (3770 bytes)

Drop-Down Menu

Here is an example of a drop-down menu:

rdropdownmenuproperties.gif (5409 bytes)

raddchoice.gif (3429 bytes)

After you insert all choices, the Drop-Down Menu Properties dialog box can look like the one on this picture.

rdropdownmenuproperties2.gif (6960 bytes)

Submit and Reset Buttons

Each form is created automatically with two buttons. The Submit button is used for submitting information after the whole form is filled. The Reset button clears all fields and resets them to default values. These buttons should be located at the bottom of the form.

Specify Form Properties

After you have added all the items to your form, you are still not done. You have to specify the handler of the script, that means how do you want to process the data that people will fill into the form.

We have created a very simple handler for you that sends all the data to you by email. To find out how to use it, click here to see another tutorial.