Home  >  Article  >  Backend Development  >  How to pass value via POST or GET under PHP_PHP Tutorial

How to pass value via POST or GET under PHP_PHP Tutorial

WBOY
WBOYOriginal
2016-07-21 15:51:31768browse

Careful friends must have noticed that there was such a program in the last topic on passing parameters between PHP pages:



I used POST as the method, but why not use the GET method?

First, let’s take a look at the difference between POST and GET value transfer:

When Post transmits data, it does not need to be displayed in the URL, while the Get method must be displayed in the URL.
Post transfers a large amount of data, which can reach 2M, while the Get method can only transfer about 1024 bytes due to the URL length limit.
Generally speaking, we use POST value as the first choice, which is safer.

This article is reproduced from www.cenusblog.com

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319153.htmlTechArticleCareful friends must have noticed that there was such a program in the last topic about passing parameters between PHP pages: formaction= "search_result.php" method="POST" I used POST for the method, but...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn