Submitting the Form3:38 with Jay McGavren
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.
You need to sign up for Treehouse in order to download course files.Sign up