Home  >  Article  >  Backend Development  >  Example of PHP using super global variable $_GET to receive form data

Example of PHP using super global variable $_GET to receive form data

高洛峰
高洛峰Original
2016-12-26 13:51:571335browse

We use touch php_get.html php_get.php to create two files on linux.

The code of the php_get.html file is as follows:




超级全局变量$_GET来接收提交的数据,然后返回信息


利用GET方式提交数据

Visit the php_get.html page and then this page submits data to php_get.php, php this The page will return information.

php_get.php code is as follows:




返回信息


php_get.php This page will receive and print out the submitted data $_GET.

Example of PHP using super global variable $_GET to receive form data

Example of PHP using super global variable $_GET to receive form data

The above example of PHP using the super global variable $_GET to receive form data is all the content shared by the editor. , I hope it can give everyone a reference, and I also hope everyone will support the PHP Chinese website.

For more related articles on examples of PHP using the super global variable $_GET to receive form data, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn