Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialkuolun Huang
3,956 PointsForm method in the lecture
I notice that around 02:00 in the lecture the form use POST method <form method="post"
But later the demo on java.com , it uses GET method
What's the difference??
1 Answer
jennyhan
36,121 PointsAfter you post the form, the client will get the result. All the web pages you can see in the browser are what by GET, otherwise, you can't get anything through the browser. The POST is just before the GET request.
Daniel Petrov
3,495 PointsDaniel Petrov
3,495 PointsThe first type of form shown relates more to the next video where you actually use the POST method. Where the second form(java.com) is a search field/form that uses the GET request method. I think there is aslo a mistake in the following quiz question that asks about POST method before you have actually seen the video about it.