Computer Applications
What do you understand by the Method attribute? Differentiate between the Get method and the Post method.
Answer
The Method attribute specifies that the form information should be posted to the URL given in the action attribute. Possible values are GET and POST.
Differences between the Get method and the Post method are:
| S. No. | Get Method | Post Method |
|---|---|---|
| 1. | Form data is sent as part of URL. | Form data is sent as part of request body. |
| 2. | Less data can be sent compared to Post method. | More data can be sent compared to Get method. |
| 3. | Less secure. | More secure. |
| 4. | Can be bookmarked. | Cannot be bookmarked. |