Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The use of GET and POST methods of PHP

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report