Do you know how to submit data using get and post method, GET VS POST method?


GET and POST Methods

GET -: It is a method, which is used to submit the data with append to the page request. The page URL and encoded information or data is separated with '?' character

  • The get method is restricted to send up to 1024 characters only.
  • The get method cannot send binary data like images, files, etc.
  • Don't use get method if you have sensitive data like passwords.

POST -: It is also a method, which is used to submit the data without appending the information or data in a URL.

  • The post method sends data in the form of an array.
  • It does not show user information or data in a URL, so it can be used for sending secure data like passwords.
  • There is no limit to send data.
  • You can also send binary data like images, word documents, pdf, etc.

Submit data using get and post method in PHP.

I hope you can understand easily if you can understand easily then follow and subscribe to my blogs and share them. Otherwise, you don't follow and subscribe to my blogs.

No comments