asp.net.ph

Skip Navigation Links

INPUT type=hidden Element

HTML Elements


Creates a hidden control.HTML 2, 3.2, 4, 4.01, 5

HTML Syntax

Remarks

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.

Members

INPUT Members

Example

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.

See Also

INPUT   INPUT type=submit



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note