what is use of get method in form? I know post is secure but my q is why to use get then | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

what is use of get method in form? I know post is secure but my q is why to use get then

get method

15th Jul 2016, 9:25 AM
manish rawat
manish rawat - avatar
3 Answers
+ 2
Sometimes form also using GET method, that is used to send query data and any short insensitive data. This type of HTTP header method will display the data filled in the form in the URL, so anyone can view and see the data. For example, if you noticed that when you search in Google, after you submit a query, your submitted keywords appear in the URL. That kind of method uses GET. This is one of its uses. Hope that answers your question and understand my explanation. 😊
15th Jul 2016, 5:24 PM
Azwan Abdullah
Azwan Abdullah - avatar
+ 2
Get is used to request (get) data. Post is used to insert or to update data on the server. Security issues can arise with both methods. Since you know that data sent with 'get' is appended to the url, you shouldn't send sensitive info like passwords, but that doesn't mean you shouldn't use it at all.
15th Jul 2016, 6:46 PM
ZinC
ZinC - avatar
+ 2
I got it thanks
15th Jul 2016, 6:48 PM
manish rawat
manish rawat - avatar