inputs
The <INPUT> tag is used in forms and allows
interaction with the httpd server.
There are several types of input tags:
INPUT
- buttons and text-boxes.
textarea
- multi line input fields
isindex
- predefined form useful for searching.
select
- list and menu selection.
<input NAME=name [value=string ]
[Type =type ] [SIZE=x,y ] [checked] ALIGN=align >
Creates an input field in a form . NAME must
be present for all types of input except submit and reset
TYPE can be one of
image This is not supported by Ms-windows Mosaic.
checkbox can be toggled on and off.
submit calls the action specified in the form.
password like a text input, but all
input is represented by asterixs not Obelisks
radio radio buttons. Input fields
with the same NAME field. only one radio button of the same NAME
can be checked at any time.
reset clears all the fields in the form.
text *default* an input field
hidden non-visible data
file copies the contents of the file
into a variable. netscape extension
Plain input field
<form>
<input NAME="From">
</form>
text areas
On Xmosaic, the SIZE parameter is interpreted as a textarea.
This is ignored in Mosaic for Windoze and proper
TEXTAREAS should be used.
This wont work under Windoze
This will work under Windoze
submission buttons
Type="submit"
reset button
Type="reset"
check boxes
Type=checkbox
<input name=check Type="checkbox" value="check">
<input NAME=check value="check2" Type=checkbox checked>
radio buttons
Type=radio
<input name=radio Type=radio value="radio">
<input NAME=radio value="radio2" Type=radio checked>
Hidden text
useful when there are a sequence of forms, data from
one can be hidden in input fields and shared across
all the forms. Hidden fields should only be generated by
a CGI script.
Type=hidden
<input name=hidden Type=hidden value="You cant see this">
password box
Type=password
<select [MULTIPLE]>...</select>
This creates a pull-down menu containing Options
in a form .
single select
<form>
<select NAME="direction">
<OPTION SELECTED> North
<OPTION> East
<OPTION> South
<OPTION> West
</select>
</form>
multiple single (use ctrl-click to select)
<form>
<select NAME="direction" MULTIPLE >
<OPTION SELECTED> North
<OPTION> East
<OPTION> South
<OPTION> West
</select>
</form>
produces:
North
East
South
West
North
East
South
West
<isindex>
This is probably the strangest tag. When I first saw it, I though that it provided
a free text searching capability on a set of documents.
What it actually does is to provide a ready built form (standardization and
all that), all you have to do is provide the processing at the server end.
Note: on Xmosaic the isindex form is in-lined, on MSwindows the form appears
at the bottom of the screen... weird!!
<textarea [rows=rows ] [cols=cols ]>
This allows us to put
a panel of text in a form
this is a text area, this is
area, this is a text area, th
a text area, this is a text
in Xmosaic, the text is shown within the text area.