Home   Web Top   Bottom Contents   Prev   Next

Forms — Hidden Fields

HTML:  <input>
XHTML: <input />

   Note: The W3C and WDG validators will not accept the XHTML-format
         in HTML, although browsers will accept this format.

Always include these attributes:

  type="hidden"
  name="name"
  value="value"

Hidden fields are additional fields that you want sent as part of the form but that do not appear on the displayed web page. The name-value pair is always sent as part of the form. You can use these for any purpose where you find them useful. For example, if you have several forms that you have emailed to you, you could include a hidden field in each so that you can quickly see which form was submitted.


Home   Web Top   Bottom Contents   Prev   Next