HTML Forms: Total Domination
Sobre a Aula

This type of input provides developers with a way to include strategic data in web forms without making it visible to users.

By using the <input type="hidden"> tag, developers can create hidden fields, i.e., fields that are not displayed to users in the form interface.

These hidden fields have the ability to store crucial information that does not need to be modified or viewed by users during form completion.

Typically, hidden fields are employed to store data such as record identifiers in databases.

When a form is submitted, these hidden fields can contain information about which specific database record should be updated, providing an effective way to associate form data with specific records.

It is important to note that, although the value of the hidden field is not displayed on the page for regular users, it can be viewed and even modified by developers using browser tools or inspecting the page’s source code.

Therefore, it is crucial not to rely solely on hidden fields for security purposes, as they do not offer protection against manipulation by malicious users.

Understanding the Input file type provides developers with a valuable tool for strategically manipulating data in web forms, ensuring efficient integration with database systems and form submission processes.

Check out:

<form>
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname"><br><br>
  <input type="hidden" id="custId" name="custId" value="3487">
  <input type="submit" value="Submit">
</form>
Entrar na conversa
Rolar para cima