What is the difference between post and get method in php




















Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 7 years, 9 months ago. Active 7 years, 9 months ago. Viewed 5k times. Improve this question. Reverb Reverb 2 2 gold badges 11 11 silver badges 16 16 bronze badges.

Forms should use POST. SergioTulentsev Unless it is a search form. Not duplicate. My script doesn't even work, I don't understand why! Cthulhu: Yes, my comment accommodates for this case. Add a comment. Active Oldest Votes. Change your PHP as well. Improve this answer. Nathan Dawson Nathan Dawson Unlike the GET method, it does not have a limit on the amount of information to be sent. JavaTpoint offers too many high quality services. Mail us on [email protected] , to get more information about given services.

Please mail your requirement at [email protected] Duration: 1 week to 2 week. JavaScript PHP vs. Reinforcement Learning. R Programming. React Native. Python Design Patterns. Python Pillow. Python Turtle. Verbal Ability. Interview Questions. Company Questions. Artificial Intelligence. Cloud Computing. Data Science. Angular 7. It is less than characters. Usually, it is not a good practice to use GET to send sensitive information such as passwords. In some situations, this method helps to bookmark the page.

The form information with the POST method is not visible to everyone. In other words, all variable names and values are attached to the body of the HTTP request. The form information is not visible in the URL. Therefore, it helps to send information securely. There is also no particular limit to the amount of data to send. In addition to that, the POST method provides features such as support for multi-part binary input while uploading files to the server. This article discussed two important methods of form handling in PHP.



0コメント

  • 1000 / 1000