POST传递数据,PHP处理,输出数据
html提交表单:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form action="10.php" method="post">
<p>留言标题<input type="text"></p>
<p>留言内容<textarea name="content" id="" cols="30" rows="10"></textarea></p>
<p><input type="submit" value="提交"></p>
</form>
</body>
</html>
PHP响应:
<?php
header("content-type:text/html; charset=utf-8");
print_r($_POST);
?>