When PHP accepts information submitted through an HTML form, it will save the submitted data in a global array. We can call the system-specific automatic global variable array to obtain these values. Commonly used automatic global variables are as follows:
1, GETmethod
Function: Get the data submitted by get method
Format: $_GET["formelement"]
2, POSTmethod
Function: Get the data submitted by post method Data
Format: $_POST["formelement"]
3, REQUESTMethod
Function: Get data submitted in any way, $_REQUEST automatic global variable contains all GET, POST, COOKIE and FILE data, if you don't care about the data source.
Format: $_REQUEST["formelement"]
Check box, list box (the name is in the form of an array such as: "select[]", use $_POST["select"] directly when getting its value That’s it)
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger’s permission.
The above introduces PHP to obtain form data and HTML to embed PHP scripts, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.