HTML Elements
Creates a hidden control. | HTML 2, 3.2, 4, 4.01, 5 |
HTML Syntax
<input
datafld = fieldname
dataformatas = html | text
datasrc = #id
id = value
name = name
type = hidden
value = value
event = script
>
The INPUT type=hidden element is used to create a control that is not rendered but whose value is submitted with a form. This control type provides a mechanism for storing and delivering information to the receiving program without user interaction.
The hidden input type presents no control to the user. Note that the element is not truly hidden; a user can see it by simply viewing the document source.
INPUT Members
The code below creates a hidden input control named keyPass
that stores, for example, a dynamically assigned access code.
<form>
... other forms controls here ...
<input type="hidden" name="keyPass" value="">
</form>
The control's value may be dynamically encrypted based on other form inputs, by a script that is triggered by the form's onsubmit event handler. This data then gets sent to the receiving program when the form is submitted.
INPUT INPUT type=submit