Making Forms with FrontPage
Lesson 9 Introduction
COSC 106 A, Tom Linton, Fall 2002
We need to understand the basics of using HTML tags to create FORMs so that we can create web pages capable of processing information and performing calculations. FrontPage does a pretty good job of making the creation of forms easy, but as usual, we'll have to edit some of the raw HTML ourselves. Our goal today will be to create a form we might use to take a food order at a fast food establishment. Here is an image of the form we're after!
Most of this activity can be completed by adding form objects from the Insert -> Form menu, and then double clicking on the objects and adjusting their properties.
For programming purposes later on, we will often need to set some of the invisible properties of our form objects, like their NAME or VALUE attributes. It may seem silly now, but since we'll need to do it later, we may as well start out by setting these properties from the very beginning (even though we cannot use these invisible attributes just yet).
Add a lesson9 folder to your homework folder on the K drive.
Start FrontPage and save the new page as foodform.html in your new lesson9 folder.
Add a new form by using the Insert -> Form -> Form option from the menubar.
Press [Enter] to create a line on which you can add text at the top of your form.
Click on the HTML tab and replace FrontPage's form tag
and comment, which should look something like this:
<form method="POST"action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.txt"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
with just the following HTML:
<form name="myForm">