1.$_post
<!DOCTYPE html >
<html xml:lang="en">
<head>
<meta content="text/html;charset=UTF-8">
<title>Document</title>
</head>
<body>
<form action="123.php" method='post'>
<input type="text" name="test"/>
<input type="submit" vale="提交"/>
</form>
</body>
</html>
<?php
//$_post接收post提交过来的数据
echo $_POST['test'];
2.$_GET
<!DOCTYPE html >
<html xml:lang="en">
<head>
<meta content="text/html;charset=UTF-8">
<title>Document</title>
</head>
<body>
<form action="123.php" method='get'>
<input type="text" name="test"/>
<input type="submit" vale="提交"/>
<br/>
<a href="123.php?username=clive">我是超链接</a>
</form>
</body>
</html>
<?php
//$_get接收get提交过来的数据
//echo $_GET['test'];
echo $_GET['username'];
//$_REQUEST可以接收post和get提交过来的数据
echo $_REQUEST['test'];