PHP9 the usage of a Super global variable (ii) _php tutorial

Source: Internet
Author: User
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 ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.