POST and GET are different ways of transmitting form data, they use different methods of sending the entered values to your application and should be handled differently. PHP uses $ _POST for values represented by a form with a method = "post" and $ _GET for values represented by a form without a method or method = "get". $ _REQUEST is a combination of $ _POST and $ _GET.
The easiest way to see the difference is:
Parameters represented by GET are displayed in the address bar, i.e.
http://example.com/index.php?page=home
passes the key page with the value home to $ _GET.
Message parameters are not displayed in the address bar.
source share