Home >Backend Development >PHP Problem >How to use super global variables $_POST and $_GET
PHP $_POST is widely used to collect form data. Specify this attribute in the HTML form tag: "method="post".
PHP $_GET is also used Widely used to collect form data, specify this attribute in the HTML form tag: "method="get".
(Recommended tutorial: php graphic tutorial)
Example:
The following example shows an input field (input) and submit button (submit ) form. When a user submits form data by clicking the "Submit" button, the form data is sent to the script file specified in the action attribute of the
The above is the detailed content of How to use super global variables $_POST and $_GET. For more information, please follow other related articles on the PHP Chinese website!