+ 1

can anyone pls tell me what is method=post and why is it necessary, and what does it actually do.

11th Jun 2016, 9:22 AM
Parth Naria
Parth Naria - avatar
4 Answers
+ 5
When you hit the submit button of a form in a page it sends all the information inside of it to the server. This info can be sent two ways: GET or POST. With GET you will see the data displayed in the url, meanwhile with POST it won't appear. You will normally use POST because you probably want to protect the information
11th Jun 2016, 8:15 PM
Gabriel Alejandro Lopez Garrido
Gabriel Alejandro Lopez Garrido - avatar
it is use to hide the information of the user such as the password etc
11th Jun 2016, 12:12 PM
Oruese Glory Idoghor
Oruese Glory Idoghor - avatar
it is referring to HTTP (hypertext transfer protocol) which defines communication over the web. essentially you have HTML as a language which defines and structures information for your browser to output to your screen but HTTP is how you send and receive that information between computers over the internet. http defines several methods or functions, but the most used are GET and POST. The GET method requests data from another server, the POST method requests that the other server accepts data.
19th Jun 2016, 6:19 PM
Thomas Korrison
Thomas Korrison - avatar
post is for validation, like credit card number, usernames/passwords when you login to website its validated on the server if the information is correct you are allowed into the site if its not 'you have entered a wrong username/password or card number is displayed, simply put its for validating sensitive information, hope that helps
28th Sep 2016, 1:04 PM
ibrahim osman
ibrahim osman - avatar