PHP

What is the difference between PHP's get & post method

Kartic1 min read

​​​​​​​Get Method

  • GET requests can be cached
  • GET requests remain in the browser history
  • GET requests can be bookmarked
  • GET requests should never be used when dealing with sensitive data
  • GET requests have length restrictions
  • GET requests are only used to request data (not modify)

Post Method : 

  • POST requests are never cached
  • POST requests do not remain in the browser history
  • POST requests cannot be bookmarked
  • POST requests have no restrictions on data length
Share this articleLinkedIn X

Discussion (0)

Sign in to join the discussion.

Delete this comment?

This will also remove its replies.

Keep exploring

PHP1 min read

PHP and Mysql environment with Docker

Create a Dockerfile in your PHP project FROM php:8.2-cli COPY . /usr/src/myapp WORKDIR /usr/src/myapp CMD [ "php", "./your-script.php" ] Then, run the commands to build and run the...

Kartic · Nov 20, 2024
PHP1 min read

What is recursion in PHP

Recursion is a programming solution in which a function calls itself. It is used to solve a variety of problems, all of which have in common a structure that contains repetition. R...

Kartic · May 20, 2023
PHP1 min read

What is PHP?

The PHP Hypertext Preprocessor (PHP) is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for develop...

Kartic · Oct 22, 2019

Follow the engineering notes.

Subscribe for technical articles from iTechOrbit.