Both are values of the method attribute of a form.
| Point | GET | POST |
|---|
| Data goes | In the URL | In the body of the request |
| Visible to user | Yes | No |
| Bookmark | Possible | Not possible |
| Size limit | Limited by URL length | Much bigger |
| Use for | Search, filters | Login, registration, file upload |
<form action="search.php" method="get">...</form>
<form action="login.php" method="post">...</form>
Never send a password with GET, because it stays in the URL and the browser history. See HTML Forms.
Learn more about the similar topics:
| Tutorials |
| No Content Found. |
| Exercises & Assignments |
| No Content Found. |
| Interview Questions & Answers |
| No Content Found. |