Home > Article > Backend Development > The love and hatred between $_REQUEST, $_POST, $_GET
$_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.
will be displayed in the url (there is a limit on the number of characters) | Nothing will be displayed in the url | |
---|---|---|
A large amount of data, PHP can submit 8M of data by default | ||
Unsafe | More secure | |
The submitted data are all independent | Submit all data together as a whole | |
Very flexible, as long as there are pages Data can be transferred by jumping | It is not flexible and must involve the form | |
More commonly used | relative Less than get |
$_REQUEST
Contains $_GET by default Arrays of ,
$_POST and
$_COOKIE
.
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!