.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>form提交</title>
</head>
<body>
//点击按钮向boke.php提交表单的信息使用post方式提交
<form action="boke.php" method="post">
<input type="text" name="name">
<input type="submit">
</form>
</body>
</html>
boke.php
<?php
if(isset($_POST['name'])){//确认是否存在索引为name的post信息
$name=$_POST['name'];//获取索引为name的post(即为name的value)
echo $name;
}else{
echo "未接收到";
}