Home > Backend Development > PHP Problem > The love and hatred between $_REQUEST, $_POST, $_GET

The love and hatred between $_REQUEST, $_POST, $_GET

autoload
Release: 2023-03-08 14:44:01
Original
1671 people have browsed it

$_GET

An array of variables passed to the current script through the URL parameter.

$_POST

The predefined $_POST variable is used to collect data from method="post" value in the form.


#getpostDisplay in the urlwill be displayed in the url (there is a limit on the number of characters)Nothing will be displayed in the urlThe amount of data submittedA small amount of data, generally less than 2kA large amount of data, PHP can submit 8M of data by defaultIn terms of securityUnsafeMore secureSubmission principleThe submitted data are all independentSubmit all data together as a wholeFlexibilityVery flexible, as long as there are pages Data can be transferred by jumpingIt is not flexible and must involve the formCommon usageMore commonly usedrelative Less than get



$_REQUEST

Contains $_GET by default Arrays of , $_POST and $_COOKIE.

Recommended:

php tutorial,php video tutorial

The above is the detailed content of The love and hatred between $_REQUEST, $_POST, $_GET. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template