Tsallaka zuwa abun ciki
Justice Tech School

GET versus POST

GET puts data in the URL and is for searches and bookmarks. POST sends data in the request body and is for changes and private data. Never send passwords with GET.

Example
<form method="get" action="/search">
  <input name="q" placeholder="Search">
  <button>Go</button>
</form>
<p>GET sends ?q=term in the address.</p>

Exercise

Send in the body.

<form method="">

Quiz Test

Which method suits a password?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.