HTML forms are HTML documents (or parts of HTML documents) which, when accessed via a form-capable browser (Mosaic, netscape, etc.), allow the user to perform input through text areas, menus, radio buttons, etc. This input is not ultimately handled by the browser. Instead, forms generally have a ``submit'' button. When this button is pressed, the input provided through the menus, text areas, etc. is sent by the browser to a ``handler'' program, which can be anywhere on the net. The sending browser then waits for a response from that program, which comes in the form of a new HTML document. See for example this document for details.
The following HTML terms provide a simple way of producing forms from a Prolog program:
<form method="POST" action="
Addr">
).
</form>
)
checkbox
with name Name, State=on if the checkbox is
initially checked (translates to an <input>
element).
radio
with name Name (several radio buttons
which are interlocked must share their name), Value is the the
value returned by the button, if Selected=Value the button
is initially checked (translates to an <input>
element).
text
, password
, submit
,
reset
, ...(translates to an <input>
element).
<textarea>
environment).
<select>
environment).