HTML form submission visualiser
This page does not send anything to a server. When you submit the form,
JavaScript prevents navigation and asks the browser to construct the
FormData that would normally be submitted.
What the browser would submit
FormData entries
No submission yet.
URL-encoded view
This string is URL-encoded, which is the default format for form data
(enctype="application/x-www-form-urlencoded"). With
method="post" the browser sends it in the body of the
request. With method="get" it is added to the end of the
action URL after a ?.
No submission yet.
Request summary
The default. Only used with method="post", since
method="get" always url-encodes into the address bar.
Key lessons
The browser submits controls by their name, not their
id. The id connects the label; the
name labels the data.
What gets submitted
- Controls that have a
name - Readonly fields
- Hidden inputs
- Checked checkboxes, using their
value - The selected radio button in each group
- Selected options in a select (every selected option in a multiple select)
- The submit button that was used, if it has a
name
What does not get submitted
- Controls with no
name - Disabled fields
- Unchecked checkboxes (not even as
falseorno) - Radio buttons that are not selected
- Options that are not selected
- Submit buttons that were not used, and reset buttons
- Anything at all, if the form fails validation