HTML Basic
HTML Form input hidden
Input hidden is a hidden field in the form. As the name implies, it will not be displayed on the web page. It is often used to pass some form parameters. A complete input hidden hidden field needs to contain at least two parts of name and value. Note that When the form data transmission method uses get, the name and value of the hidden field will be displayed in the URL bar.
HTML Form input hidden hidden field example
<form>
<input type="text" name="YourName">
<input type="hidden" name="hidden field name" value="hidden field value">
<input type="submit" value=" Submit form">
</form>
Present results<input type="text" name="YourName">
<input type="hidden" name="hidden field name" value="hidden field value">
<input type="submit" value=" Submit form">
</form>
The <input type="hidden" name="hidden field name" value="hidden field value"> in the example is the hidden field, and the presentation result only shows the text input field and the button for submitting the form, but not The field is hidden, but when the user submits the form, the value of input hidden will also be sent for processing by the back-end program.
It is recommended that the name and value of input hedden use English letters, and both upper and lower case are acceptable.
Post a Comment
0 Comments