input:hidden element
Creates a hidden text control.
The control is not rendered, and it is invisible for the user. With this element you can send hidden data with a form to a server.
This control is one of the form controls.
The contents of the control can be submitted to a server if the following conditions are met:
When the container form is submitted, the name and the text content of the hidden control are sent as a name/value pair.
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
JavaScript page for this element: input:hidden. |
Possible members:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Example HTML code 1:
This example illustrates the use of the hidden input element. For example, if you want know how long it takes the user to fill a registration form, simply create a hidden input field with a value of the actual server time when generating the registration form on the server. When the form is submitted, you can get the duration from this value.
|
||||
<form method="post" action="#URL#"> <input type="hidden" value="19:03:31" name="startTime" /> Username: <input type="text" name="userName" /> <br /> Email: <input type="text" name="email" /> <br /> Password: <input type="password" name="password" /> <br /> Repeat Password: <input type="password" name="repassword" /> <br /><br /> <input type="submit" value="Register" /> </form> |
||||
|
||||
Did you find this example helpful?
|
Related pages:
External links:
input type='hidden' element (MSDN)
input type='hidden' element (Safari Reference Library)
input type='hidden' element (W3C)
input type='hidden' element (Safari Reference Library)
input type='hidden' element (W3C)
User Contributed Comments