can anyone pls tell me what is method=post and why is it necessary, and what does it actually do.
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
it is use to hide the information of the user such as the password etc
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.
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