input hidden
HTML input hidden Element
Setting the HTML input element's type attribute to "hidden" gives you a way to pass a [name + value] pair behind the scenes in your web <form>. Data that the user usually does not see unless they choose to view the source code of the page that your form is on. This data is passed to your server side form parsing script for proccessing along with all of the other apparent form data.
When the form is submit this data is sent with your regular form data. Accessing the posted name of "little_hider" in your parse file gives you access to the data within it ="holds secrets".
Value: "hidden"
name - specify the input's name that your form parsing script will access
Possible Values: "short descriptive name"
value - specify a value string to send in the form submission
Possible Values: "a string"
disabled - specify that the input be disabled
Possible Values: "disabled"
global attributes - global core attributesSee: list of global attributes
Possible Values: "a form's id attribute value"
HTML CODE EXAMPLE
<input name="little_hider" type="hidden" value="holds secrets">
When the form is submit this data is sent with your regular form data. Accessing the posted name of "little_hider" in your parse file gives you access to the data within it ="holds secrets".
Attributes for this element:
type - specify the type of inputValue: "hidden"
name - specify the input's name that your form parsing script will access
Possible Values: "short descriptive name"
value - specify a value string to send in the form submission
Possible Values: "a string"
disabled - specify that the input be disabled
Possible Values: "disabled"
global attributes - global core attributesSee: list of global attributes
New HTML5 attributes for this element:(applies 2014)
form - set a relationship between the input and a formPossible Values: "a form's id attribute value"
0 Response to "input hidden"
Post a Comment