<form name = "___" action = "script
file goes here" method = "get or post"></form>
Enable web pages to get information from the user.
Does not appear on page ... used to surround FORM ELEMENTS.
Often used in conjunction with a script to process the info.
Usually form tag should contain an action attribute and
a method
to post.
FORM ELEMENTS should be between opening and closing form tags
name attribute not required but may be used if multiple forms in
document
Input type Form Elements
<input type = "_____" name = "___" value =
"_____" id = "____"/>
name identifies the item
value indicates what the user entered or selected
id is used in script to refer to the element
EXERCISES
Explain the difference between the following three attributes: ID, NAME, VALUE.
One of the attributes of the form tag is method. Two possible values
for method are get and post. Search the
Internet to determine the difference between get and post.
How do you use an image as a submit button?
What do you use a hidden field for?
There is a simple way to email the information in a form. Search the
Internet to find out how.
Create a page that provides three radio buttons for selecting a color. Each
radio button should represent a different color. Make sure that the user
can only select one of the three. Make sure that each button is labelled
with the color.
Create a feedback page that has the following features. The page
should appear as shown below.
Has a textbox for entering your name.
Has a textbox for entering your e-mail address.
Has a combo-box for selecting a course. You should have at least three
courses in the combo-box.
Has at least three checkboxes. Each checkbox should be for a
different complaint.
Has a textarea box for entering comments.
Has a button for submitting info.
Has a button for resetting all info.
Each item should be appropriately labelled as shown.