Today, let's talk about $_get () and $_post ().
In fact, it is easy to understand, according to the surface meaning can be seen, is to get the post and get form data, in fact, it is so, to point to professional words,
The $_get variable is an array of variable names and values that are sent by the HTTP GET method.
The $_get variable is used to collect values from the form method= "GET". Information sent from a form with a GET method is visible to anyone (displayed in the browser's address bar) and has a limit (up to 100 characters) to the amount of messages sent. Well, for example, the code on the simple login interface:
It will be submitted to get.php this page, and then look at its code:
Welcome
.
You password are
You can take the value of table Tan Riming to name by $_get["name"]. The effect is as follows. $_get () effect.
$_post and $_get () essentially no difference, just GET the fish POST The difference, here I am not in detail, the code and get the same, the index page just change method get to POST, accept the page to $_post[' name '].$_ Post effect.
http://www.bkjia.com/PHPjc/664283.html www.bkjia.com true http://www.bkjia.com/PHPjc/664283.html techarticle Today, let's talk about $_get () and $_post (). In fact, it is easy to understand, according to the surface meaning can be seen, is to get the post and get form data, in fact, it is so, to point professional ...