Are there any other types of data that can be accepted by the method attribute of the form element apart from “POST”? If yes, then what functions do the others perform?
Hi @pulkitsingla
I’ve found these Mozilla docs very useful:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form
You can find your answer under the Attributes section. Hope it helps solve your question!
I have read that GET method of HTTP is used to get things from the server, But why in case of Forms are we using GET to send form data to the server, instead of getting it??
Why aren’t we only using POST?
I am confused, please help
This is a good explanation on HTTP Requests “https://www.khanacademy.org/computing/computer-science/internet-intro/internet-works-intro/v/the-internet-http-and-html”
You can use either methods. Basically, GET is less secure compared to POST because data sent is part of the URL
I think most of the time server also send us the information, for example OPT or verification code regarding to some services of multiple apps
GET
sends a request from your device to the server that has the data you are looking for.
POST
sends data to the server.
(As far as I understand)
A GET
request is a request the client makes to retrieve data from a server. This is how it works in simply terms:
- The client sends a GET request to the server
- The server sends back a response containing all the information the client requested
This link was given by lesson
https://www.codecademy.com/articles/http-requests
it contains two more methods I think
That video really helped! thanks!