(
SERVLET ERROR\n\nHTML forms \n\nprovide a mechanism for soliciting information from the user and sending\nit to the server. \n\nThere are three main HTML elements for getting input from the user:\n input, select, and textarea. Each of these\nelements must have a name parameter which gives a name to the\ndata that is sent to the server. The server will then use this name\nto determine how to handle the data.\n\nThe input element
\nThe input element has several variants including checkboxes, textfields,\nand file browers. We describe the most common variants below.\nAll of these variants have the following form:\n
input element.\nThe type attribute can have one of the following values:\n text, password, checkbox, radio, submit, reset, file, hidden, image, button.\n\n\n\nThe text and password variants create a textfield in which the user can\nenter characters. The initial size is SIZE characters and the textfield\nis initialized with the string of characters in \"VALUE\". The password\nvariant displays asterisks for each character typed by the user.\n
\nThe checkbox and radio variants create checkable buttons.\nIf a button is checked, then its \"VALUE\" will be sent to the server.\nSeveral buttons can have the same name, in which case the server will\nreceive several values for that name. The radio variant allows\nthe user to check at most one of the buttons that share the same name.\n
\nThe submit variant sends the data to the server when it is pressed\nand the reset variant sets all fields in the form to their\ninitial values.\n
\n\n
\nThe last four are more specialized and won't be discussed in detail here:\n file is used for selecting a file on the users disk,\n hidden is an element that doesn't appear on the webpage (but still\nspecifies a value to be sent to the server), \n image specifies a graphical submit button, and button\nis used for client-side scripting, which we do not discuss here.\n\n
| \n\n | \n\n\n\n" (htmldemo 30 "a" (!#{} "\n\n \nHTML Form Demo --- the input elements\n \n\n\n" ))"\n | \n\n\n
textarea element name, you must specify the size of the\ntextarea in rows and columns. \n\n The select element multiple keyword is present in the attribute list of the select\nelement, then the user is allowed to select several of the options simultaenously;\notherwise, the user can only select one. The value attributes in the\n option elements are sent to the server if the item is selected. \nIf there is no value attribute then the text between the option tags\nis sent in its place.\n \n\n\n
| \n\n | \n\n\n" (htmldemo 30 "b" (!#{} "\n\n \n HTML Form Demo -- textarea and select\n \n\n" ))"\n | \n