test.html
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<form action="test.php" method="post">
<input type="text" name="test">
<input type="submit" value="提交">
</form>
</body>
</html>
test.php
注意php需要网页服务器
test: <br>
<?php echo($_POST['test']);?>
<br>
<?php print_r($_POST);?>