Letting Users Fill Out Text Boxes and Areas


The text box that enables the user to enter a single line of text (no more than a word or short phrase, depending on the size of the box) is probably the single most common data entry element used in Web page forms (although Submit or Clear buttons are virtually universal as well). They re pretty much indispensible for enabling visitors to send you their names , addresses, and other important information. Whether you re creating your own form from scratch, or editing an existing form, FrontPage makes it easy to create the box and control its size. First, you create a form:

  1. Open the page that you want to include a form.

  2. Position the text cursor where you want the form to appear.

  3. Choose Insert, Form, Form.

  4. Press Enter a few times to make some space above the Submit and Reset buttons so that you can enter a text box (see Figure 14-10).

    click to expand
    Figure 14-10: First, create a form so that you can add text boxes and other data-entry elements.

Aha!  

Create a Form Instantly
You don t have to insert a form before you create a form field. If you insert a form field without first creating a form, FrontPage will create a form for you automatically.

Insert a Text Box

Once you have a form defined on the current Web page, it s a matter of a few steps to create a box into which a visitor can enter the necessary information:

  1. Enter text that explains the purpose of your form, and format it as you would any other text.

  2. Enter a label for the text box you want to create, and press the spacebar once or twice.

  3. Choose Insert, Form, Textbox.

Aha!  

Drag Your Text Box to Give Users More Room
Give your users enough space in which to type. The text box created by FrontPage won t accommodate more than 20 characters . Most street addresses (and a few proper names) will need more space. You can drag the box s right edge to provide more room.

Invite Extended Comments with a Text Area

Sometimes you want to invite viewers to submit extended comments ”about your site, your business, or your level of customer service, for instance. You can indicate that extensive comments are invited by creating a Text Area box ”a text box that has a scrollbar so users can enter multiple lines of text. Just follow these steps:

  1. Enter some text that prompts the user to enter some information in the text box.

  2. Position the cursor at the location in the form where you want the text area (a scrolling text box) to appear.

  3. Choose Insert, Form, Text Area.

Aha!  

Label Your Form Box Clearly
Right-click a text box, or other field, and choose Form Field Properties from the shortcut menu to change the field s properties. The Name field becomes important when you receive and process the information you receive from the form. The data entered in the box will be presented next to the box s name, in a form such as Lastname=Holden. Make sure the Name box contains a clear indication of the field s contents, so that you can process the information more easily. The Initial Value box in Text Box Properties enables you to specify some text that the box will contain when the user first views it, even before entering any data in the box.




Faster Smarter Microsoft Office FrontPage 2003
Faster Smarter Microsoft Office FrontPage 2003
ISBN: 0735619727
EAN: 2147483647
Year: 2004
Pages: 179

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net