At the top of this section we have added a caption, "Report a Problem".
At the bottom of this section we have added a hyperlink back to the top of
the page.
The FORM element contains four input fields and two buttons:
A text input field for the Name of the person submitting the problem.
A text input field for the Employee ID of the person submitting the
problem.
A hidden field to contain the client operating system.
Note: We will fill in this field using JavaScript in Step 15.
A scrollable textarea field for a Description of the Problem.
A submit button.
A reset button.
In the FORM element we have
specified method="get" so that
the contents of the form's input fields will be appended as name/value pairs
to the end of the URL when the submit button is pressed.We
have specified action="report.html".
The file report.html is a file on the server which contains JavaScript code
to process the values.
We chose the "get" method here as simpler to implement in real-life code for
this tutorial. In designing your own page, you should follow the recommendation
of the World Wide Web Consortium (W3C) by using method="post"
and setting action= to the
name of a processing script file, such as a PERL file, residing on the server.
For the illustrative purposes of this tutorial, report.html, instead of processing
the data, merely displays it.