Step : Adding a form
|
|
|
In this step we add a simple problem report form to the bottom of the page.
- Add these lines after the line containing the <!-- APPLET --> comment.
<br>
<br>
<h2 id=problem> Report a Problem </h2>
<FORM id=fmReport method="get" action="report.html" >
Name: <input type="text" name=txtName ><br><br>
Employee id: <input type="text" name=txtID ><br><br>
<input type="hidden" name="txtOS" >
Description of the problem:<br>
<textarea name=txaDesc rows=4 cols=40></TEXTAREA><BR><BR>
<input type="submit" name="btnSubmit" value="Submit report">
<input type="reset" name=btnReset>
</FORM>
<br>
<br>
<a href="#topholder">Back to Top</a>
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.
- Save and close the custom HTML template file.
- Regenerate the Deployment Wizard output files.
The resulting Web page is shown below.
When the submit button is pressed the browser jumps to report.html. View the page generated by report.html.
|
|
|