This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
When we submit the form for a new page, notice that the form fields are being encoded and added on to the URL. That's because our form is being submitted using an HTTP GET request. Using an HTTP GET request is fine when you're getting data from the server. But when you're adding new data to a server, that will be accessible at a new path, you're supposed to use an HTTP POST request instead of a GET request.
More general info about submitting HTML forms can be found on the Mozilla Developer Network.
Here's some info on the differences between HTTP GET and POST requests. It talks about the technical reasons you should use the POST method for forms that add new data to the server.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up