why input type hidden is used?
The hidden input type is used to maintain hidden values that are not intended to be manipulated by your users. One of the original input types, hidden has been supported by all browsers since forever. While hidden from the user, the name and value get sent with form submission.