$_get: Get value on Address bar$_post:post form sending data$_request: There is a get and post contentIf the post and get names are the same: then it is up to the setup item, such as request_crder= "GP", which is to store get again post if duplicate
Today we are going to continue to php9 a series of super global variables, today we'll talk about the use of $_file.
First of all, similar and $_post, $_files applicable to upload file class input tag, $_fifles similar to a two-dimensional array,
The 1,$_get is displayed in the Address bar in clear text, $_post is through the HTTP main request, the page can not see (through Firebug);2,http does not specify $_get and $_post can submit data restrictions, $_get by the browser and Web server
We created two files on Linux with Touch php_get.html php_get.php.
The code for the php_get.html file is as follows:
The Super global variable $_get to receive the submitted data, and then returns the information Submit data using Get"
Visit
Name Function description
$_get[] Gets an array of variables submitted in the Get method
$_post[] Get an array of variables submitted with the POST method
$_cookie[] Obtain and set the COOKIE ID of the current website
$_session[] A unique
Learning Super global variables in php
Since PHP 4.2.0, the default value of register_globals is off. as a result, many variables can be used directly in the past, for example, $ PHP_SELF or the set SESSION variable cannot be accessed in
Usage of php9 Super global variables (2 ). Let's talk about $ _ GET () and $ _ POST () today (). In fact, it is easy to understand. it can be seen from the surface that it is to obtain the data of the post and get Forms. In fact, this is also the
Name function description $ _ GET [] GET the variable array submitted by the GET method $ _ POST [] GET the variable array submitted by the POST method $ _ COOKIE [] GET and set the current website cookie identifier $ _ SESSION [] to obtain the
1. assign values to variables after they are declared. There are two ways to assign values: value assignment and reference assignment. 1. value assignment $ colorquot; redquot; $ sum12 + qu...
I. variable assignment
You can assign values to
What is a Hyper global variable
Many of the predefined variables in PHP are "hyper-global", which means they are available in all scopes of a script. There is no need to perform a global $variable in a function or method; You can access
Super global variables in PHP
From PHP 4.2.0, the default value of register_globals is off. As a result, many previous variables can be directly used, for example, $ php_self or the session variable you set cannot be accessed in the form of "$
Name
Function Description
$ _ Get []
Get the variable array submitted in the get Method
$ _ Post []
Get the variable array submitted in the post method
$ _ Cookie []
Obtain and set the cookie ID of the current
001.htmlHTML>Head>title>User logtitle>Metahttp-equiv= "Content-type"content= "Text/html;charset:utf-8">Head>Body>formMethod= "POST"Action= "001.php">User name:inputtype= "text"name= "user_name"Required= "Required"placeholder= "Please fill in User
PHP pre-defined variable 9 Super Global array usage details, global array. PHP pre-defined variables 9: Usage of ultra-Global Arrays. Global Arrays 1 and $ _ SERVER Super global variables contain information created by the web SERVER, it provides
Many of the predefined variables in PHP are "hyper-global", which means they are available in all scopes of a script. There is no need to perform a global $variable in a function or method; You can access them.
These hyper-global variables are:
PHP pre-defined variable array 1, $_server
The $_server Super global variable contains information created by the Web server that provides information about the server and client configuration and the current request environment. Depending on the
PHP predefined variable array type overview. PHP predefined variable array 1, $ _ SERVER Super global variable contains information created by the web SERVER, which provides information about the SERVER and customer configuration and the current
This article mainly introduces the PHP global variable and the Super global variable Difference, the detailed analysis tells the PHP global variable and the Super global variable concept, the usage and the use difference, the need friend can refer
Setting up the hosting environment
Now that you know the world of Phpapi and can do a lot of work with Zval and the language internals, it's time to move the target and do what it does best: explain the scripting code.
Embedded SAPI
In retrospect,
The difference between global variables $ GLOBALS and global in PHP. This article shares the differences between Super global variables $ GLOBALS and global in PHP. 1. there are many Super global variables $ GLOBALSPHP, and the following are all
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.