The concept of a hyper-global variable array is different from a global variable, and here I'm mainly talking about using it to receive information. In fact, in the past has been heavily used
First: Get array, good speed, but relatively not very safe.
The post array, which can receive large amounts of data, is more secure and most commonly used.
The request array, which can receive get and post data, but least recommended, is unsafe.
The resver array, which is used for real-world client information, is not used to receive data.
Here is the code example:
<?php$name=$_post[' name ']; $password =$_post[' password '); $city =$_post[' city '; $hobby =$_post[' hobby '];echo " Account information:<br/> "; echo" Name: ". $name." <br/> "; echo" Password: ". $password. ' <br/> ';//echo "Location:". $city. ' <br/> '; Echo ' hobby: ". $hobby." <br/> "if (Empty ($_post[')) {echo" did not receive city information ";} Else{echo "Location:". $city. ' <br/> ';} Header ("location:http://www.baidu.com");? >
Respect original, prohibit non-csdn reprint.
Super global variable array get post Requerst resver usage rules