November 22, 2026
What is the purpose of a hidden field in a web form?
Hidden input field does not appear at browser. You can set any value in hidden field which you do not want to show at browser. But want to use in your program, Example of hidden field:
Example
<form method="post" name="frmHiddenField">
<input type="hidden" name="emp_id" value="12" />
</form>
FAQ
1. What is a hidden field in an HTML form?
A hidden field is an HTML input element that stores data without displaying it on the webpage. It is created using the type="hidden" attribute.
2. What is the purpose of a hidden field in a web form?
The main purpose of a hidden field is to store information that needs to be submitted with a form but does not need to be visible to users.