Displayed comments version!

True interactivity begins with the statement. Any html tags which create input boxes or text areas into which text can be typed, radio buttons or checkboxes which can be clicked/selected, etc. need to be surrounded by <form></form> tags in the document. The "method=" statement can be either "method = get" or "method = post". The "action = ..." statement specifies what is supposed to happen when the form is submitted. In this case, the information in the form is emailed to the email address "GNovak@Indyvax.IUPUI.edu". If, for example, the form were being submitted to a hypercard cgi application, the statement could be something like "action = http://128.236.57.130/hypercard.acgi$quiz".

Mission to Mars


Please type your LAST name: The <INPUT TYPE=text> tag creates a small (1 line only) area (field) into which text can be entered. Each input field can have a unique name, specified in the "NAME = ..." part of the tag.

Please type your LAST NAME and LAST FOUR SS# digits (eg: Smith3256):

I received no help from anyone on this assignment. The <INPUT TYPE=Checkbox> tag creates a checkbox which can be "checked" or "unchecked" via mouseclicks. Clicking the mouse on the checkbox toggles its state. Checkboxes can also have unique names, specified in the "NAME = ..." part of the tag.


The following three questions refer to the material you were to read in preparation to the lesson. Questions one and two require you to write a three or four sentence response. Number three is a multiple choice question. Click in the appropriate circle.

You may change your mind as often as you wish. When you are satisfied with your responses, click the SUBMIT QUIZ button at the bottom of this page.






1.





What evidence is there of water and volcanoes on Mars?

The <TEXTAREA ...> tag creates an area into which text can be typed by the user. The size of the textarea is specified by the height and width in numbers of characters via the "ROWS = ..." and "COLS = ..." statements. Here, "wrap=soft" means that the user can just keep typing in the box without having to enter carriage returns; the text automatically wraps around in the textarea. Each textarea can have a unique name. Note that the <TEXTAREA ...> tag requires closing with the </TEXTAREA ...> tag.




2.

Why has NASA sent two different probes en route to Mars? What will each do?




3.

Which 1996 United States mission to Mars will actually land on the surface of Mars?

Mars Global Surveyor

Mars Pathfinder

both the Mars Global Surveyor and the Mars Pathfinder

neither mission will land

Question 3 of this quiz is a multiple choice question constructed out of a series of 4 radio buttons. The <INPUT TYPE=Radio button> tag creates a radio button. To create a series of radio buttons which belong together as a unit, so that only one of the buttons can be clicked at any one time, each of the buttons in the group must have the SAME NAME. Their VALUES, however, must be unique. What gets returned to the server when the form is submitted is both the NAME and the VALUE of the radio button which was clicked. Note that this multiple choice question does not display the choices labelled as "a", "b", "c", and "d"; these are just the values of the buttons, transparent to the user.



You may change your mind as often as you wish. When you are satisfied with your responses click the SUBMIT QUIZ

The <INPUT TYPE=Submit> tag creates a submit button on the page. When that button is clicked, the information in the form is sent ("submitted") to the server. Each form requires its own "submit" button, so if a document contains multiple forms, it must also contain multiple "submit" buttons, each of which must be within its corresponding form. The NAME of the submit button uniquely identifies the submit button, and the VALUE of the submit button indicates what is displayed on the button itself as it appears on the page.


The </FORM> tag closes this form in this document. If there were another quiz offered in this document, for example, it could be contained in its own separate form, so this document would contain another <FORM>... </FORM> set of tags.




Back to the Resource Table