Using GET

Some sample form, to generate a get request:

   Please enter your name to register

   First name: Last name:

Using POST

Now the same with POST instead of GET:

   Please enter your name to register

   First name: Last name:
The website will now respond with "Your input was received as: Nothing" because this web page only looks at the query string in the URL, not at any query string in the body. If you observe the outgoing HTTP request, you can see that the query string is there.

Using GET with a hidden field

Now a GET with a hidden field for the first name. This could for instance be a webpage tailored for user who already supplied their first name:

   Hello John, please also enter your last name to register:

   Last name:

Using POST with a hidden field

Now the same, but with a POST field:

   Hello John, please also enter your last name to register:

   Last name:
(Again, the website will now respond with "Your input was received as: Nothing".)