The use of GET and POST methods of PHP
This article focuses on "the use of PHP's GET and POST methods". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "the use of PHP's GET and POST methods".
GET method
The GET method sends the encoded user information attached to the page request. The page and coding information are composed of? Characters.
Http://www.test.com/index.htm?name1=value1&name2=value2
The GET method generates a long string in the location box of the browser, which appears in your server log.
The GET method is limited to sending up to 1024 characters.
If you send passwords or other sensitive information to the server, do not use the GET method.
GET cannot be used to send binary data, such as images or Word documents, to the server.
The data sent by the GET method can be accessed using the QUERY_STRING environment variable.
PHP provides an associative array of $_ GET to access all sent information using the GET method.
Try the following example by putting the source code into the test.php script.