Using the input Element to Create Hidden Data Items

Description

To send data items to the server without showing them to the user, use the hidden input element.

Example

The following code shows how you can use this type of input element.


<!DOCTYPE HTML>
<html>
<body>
  <form method="post" action="http://example.com/form">
    <input type="hidden" name="recordID" value="1234" />
    <input type="submit" value="Submit Vote" />
  </form><!--  ww w  .  j ava 2s  .c om-->
</body>
</html>

Click to view the demo





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed