+ 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
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. đ
+ 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.
+ 2
I got it thanks