Get the App
SLTechnology News&Howtos  ›  Development  › 

What does id 1 mean in php

Shulou Source: shulou.com Published: 2022-06-02 01:36:56 09月11日 Update

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.

Tags: Data forms methods servers services meaning fields properties references articles security one-to-one correspondence content parameters security more features queues good practical Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Apple Xiaomi Redmi MySQL