What are other types of methods?

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 :slightly_smiling_face:
I’ve found these Mozilla docs very useful:


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 :slight_smile:


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

1 Like

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