Glossary

Query string defined.

A query string is the key=value data appended to a URL after a question mark, and it's how a form using method GET carries its fields to the server.

Definition

How a query string works

A query string is the part of a URL after the question mark: pairs like name=Ada&topic=billing, joined by ampersands and percent-encoded so spaces and symbols survive. It's how data rides along in the address bar itself, which makes it perfect for search filters and pagination, where you want the URL to be shareable and bookmarkable.

A form with method="GET" builds a query string automatically: the browser takes every named field, encodes it, appends it to the action URL, and requests that address. That's the right choice for a search box. It's the wrong choice for a contact form, because everything you type ends up visible in the URL, saved in browser history, and written into server logs, and there's a length limit on how much a URL can hold. Data you're sending somewhere belongs in a POST body instead. That's why a form backend expects POST: FormWire's endpoint reads submissions from the request body, so your visitors' messages, emails and file uploads never leak into a URL.

Where it fits

Good for reading, wrong for sending.

Related questions

Want to see it working?

Read the docs
Ready in a minute

Keep your form data in the body, not the URL.

Free tier forever. No credit card required.