What are the tradeoffs between using $_GET and $_POST, and when is it appropriate to use $_REQUEST and why is it often discouraged?

Last updated 15 June 2026

  • Use $_GET for visible, shareable, read-only parameters.

  • Use $_POST for sensitive or state-changing data.

  • $_REQUEST merges multiple input sources for convenience, but it is discouraged because it hides where the data actually came from.

  • https://www.php.net/manual/en/reserved.variables.request.php
  • https://www.youtube.com/watch?v=JdrvETQCAGw
  • https://www.reddit.com/r/PHPhelp/comments/s2vqzt/is_it_possible_to_use_both_get_and_post_within/
  • https://www.ionos.com/digitalguide/websites/web-development/get-vs-post/
  • https://www.edureka.co/blog/get-and-post-method/
  • https://medium.com/@otabekjurabekov3/understanding-php-superglobals-get-post-and-request-bd473c8b1615
  • https://www.geeksforgeeks.org/php/get-and-post-in-php/
  • https://www.geeksforgeeks.org/php/difference-between-http-get-and-post-methods/
All PHP interview questions