Step 3
Please run the application, add some dummy data in the form, such as in the example below.
Click on the submit button; you will find the page's URL is appended with data similar to the following
http://127.0.0.1:5500/index.html?cnumber=111222333444&month=12&year=2021&cvv=123
The string after ?
is a list of key-value properties where keys correspond to the name
attribute of the <input>
fileds. The values correspond to the values you entered into the form. The key-value pairs are separated with &
. This pattern is used to submit form data to a server for processing, and it can be modified.
The user input is most often sent to a server for processing.
Notice that each input field must have a name
attribute to be submitted. If the name
attribute is omitted, the input field's value will not be submitted.