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 trial

JavaScript AJAX Basics (retiring) AJAX Concepts Review HTTP Methods

So you don't use POST to send form information to the server to be stored? So you use GET? That does not compute with me

One of the questions asks when you would use POST. The other answers where correct except for using POST to send information to the server. I failed that question everytime.

1 Answer

Alex Heil
Alex Heil
53,547 Points

hi David Schreiter , I guess you're referring to the question When should you use the POST HTTP method with AJAX? in that quiz?

in general you're of course right that POST can also be used to send a form. however let's look at the full answer to figure out why it's not accepted then: Everytime you submit information from a form.

the deal-breaker here is the everytime - because while POST is a valid way to send, it's NOT always the right choice.

hope that helps and have a nice day ;)

Thanks Alex. I get it. I'm usually good about not falling for those absolute qualifiers in multiple choice questions. Everytime a sentence begins with everytime it is false ;)