Difference between GET and POST method in PHP
In : BCA Subject : PHP and MySQLBoth the GET and POST methods had the same functionality. The difference is that the GET technique will display the information to the users. In the case of the POST technique, however, the user will not see any information.
The data passed using the GET method is visible to the website's user in the browser address bar, however the data passed using the POST method is not directly accessible to the user.
Characters in the GET method were also limited to 256 characters. Characters were not restricted in the POST technique, though. The user will see the get method because it is attached to the URL, but the put Post function will not be visible because it is contained within the HTTP request body.
When it comes to the data types that can be provided, you can only use text with the Get method because it is delivered as a string appended to the URL, but you can use text or binary with the Post function.
In terms of the default form, For any form, the default method is Get; if you want to use the Post method, alter the value of the attribute "method" to Post
Because it is transmitted concatenated with the URL, the Get method's maximum length is limited to 256 characters, but the Post method is not.
The size of data conveyed by the get method is limited, but not by the post method.