This is a basic introductory tutorial on PHP, telling you how to get the value of the parameter passed from the hyperlink, which is the most common value transfer between pages.
Connection 1, Connection field
Connection 2, Connection Field
In php we can get it through $_REQUEST[] and $_get[''], such as,
The code is as follows
代码如下 |
复制代码 |
echo $_GET['id'];
结果:$errat['id']的值
或用
echo $_REQUEST['id'];
结果:$errat['id']的值
?>
|
|
Copy code
|
|
echo $_GET['id'];
Result: value of $errat['id']
or use
echo $_REQUEST['id'];
Result: value of $errat['id']
?>
In PHP, the main method to transfer values between pages is to use the get form, which can also be regarded as an introductory tutorial to PHP.
http://www.bkjia.com/PHPjc/629124.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629124.htmlTechArticleThis is a basic introductory tutorial on PHP, telling you how to get the value of the parameter passed by the hyperlink, page It is the most common to pass values between pages. Connection 1. a href=a.php?id=?ph...
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