In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail what id 1 means in php. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Id 1 in php means that the value is passed by PHP GET. The complete statement is "mypage?id=1". Get adds the parameter data queue to the URL referred to by the ACTION attribute of the submitted form. The value corresponds to each field in the form one by one, which can be seen in URL.
This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer
What does id 1 mean in php?
In php, $_ request and $_ post, $_ get are used to accept form data, what is the difference between them at that time, and when is the best time to use that one.
1. The differences and characteristics between $_ request and $_ post, $_ get $_ REQUEST [] has the function of $_ POST [] $_ GET [], but $_ REQUEST [] is slow. All data submitted through the post and get methods can be obtained through the $_ REQUEST array
Second, the differences and characteristics of $_ post and $_ get
1. Get obtains data from the server, and post transmits data to the server.
2. Get adds the parameter data queue to the URL referred to in the ACTION attribute of the submitted form, and the value corresponds to each field in the form, which can be seen in URL. Through the HTTP post mechanism, post transmits each field in the form together with its contents in the HTML HEADER to the URL address referred to by the ACTION attribute. The process is not visible to the user.
3. For get mode, the server uses Request.QueryString to obtain the value of the variable, and for post mode, the server uses Request.Form to obtain the submitted data.
4. The amount of data transmitted by get is small and cannot be greater than 2KB. Post transmits a large amount of data and is generally regarded as unrestricted by default. But in theory, the maximum amount of IIS4 is 80KB and 100KB in IIS5.
5. The security of get is very low, while that of post is high.
For example: mypage?id=1 this is the GET way to pass values, you can use $_ request and $_ get to accept the value.
This is the end of the article on "what does id 1 in php mean?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.