$_POST variable in PHP
Post method can transmit more data than GET method. GET method will place values in the URL, where POST method will not do that, but will transmit the data without placing it in the URL.
There are two reasons why POST method should be used instead of GET method.
1. Security. GET method will place submitted data in the URL, so it can be visible by others.
2. POST can handle bigger volume of data than GET method. For example, when the file needs to be submitted, than it is preferred to use POST method rather than GET method.
Comments
Post a Comment