Home >Backend Development >PHP Tutorial >Using URL to transfer data_PHP tutorial

Using URL to transfer data_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:04:011111browse

Readers who understand HTML (Hypertext Markup Language) should know that you can add "GET" and "POST" parameters in the "

" tag to send data back to the HTTP server. In fact, in the PHP language, we also Both "GET" and "POST" parameters can be used. In addition, you can also add "GET" information to the URL. For example, let's take the following URL as an example:
http://www.yourserver.com/download/down.php?id=1
http://www.yourserver.com/news/show.php?page=1
These URLs are usually used the most in search engines on websites. The URLs you see all have various parameters. , the purpose is to transfer data back to the http server to find relevant information. If you think this method is not good, I have another method to add the transmitted data to the URL, such as the following URL: http://www.yourserver.com/vote/php/show.php/200107/2138 /.
The corresponding PHP source code is as follows:

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445236.htmlTechArticleReaders who know HTML (Hypertext Markup Language) should know that you can use GET in the tag and POST parameters to send the data back to the HTTP server. In fact, in PHP language I...
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