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:

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!

2 Likes

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:

2 Likes

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

2 Likes

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