Results 1 to 2 of 2

Thread: Hidden Data Question

  1. #1
    WarPig
    Guest

    Hidden Data Question

    What does the Input type="hidden" attribute do for HTML? Just need an example for clarification. Thank You

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Allows you to pass data to a page without it being displayed to the user. Say you have a value you need to pass with the form but you don't want the user to see it. For example, a primary key for the record that is being displayed for updating. The user doesn't need to see this value, but the page that does the update will need it to know what record to effect. Using a hidden input field allows you to pass the value.

    Another use is for passing values from ActiveX controls. They will not pass on their own. So onSubmit you have to put their values into hidden fields so the values get passed.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width