Index Ai Academy
Glossary · Phase 8 · APIs

Query string

Also written: query strings

The part of a web address after the ?, holding named values, as in /search?q=fern&page=2.

With method="get", the browser puts the fields in the address as a query string: /search?q=fern. Use GET for forms that only look things up, like search and filters, because the result can be bookmarked and shared. With method="post", the fields travel in the request's body instead. Use POST for anything that changes something: signing up, saving, deleting, paying.

Try it now

Only the final GET is repeated by a reload, so nothing is saved twice.

Learn it properly

Forms and redirects · GET and POST, validation messages, post/redirect/get, flash messages and CSRF tokens. About 45 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write