index.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled</title>
</head>
<body>
<form method="post" action="chap.php">
name:<input type="text" name="user"><br>
description <textarea name="des" rows="5" cols="20"></textarea><br>
<input type="submit" name="submit" value="Chap">
</form>
</body>
</html>
chap.php
<?php
if(isset($_POST['submit'])){
$name=$_POST['user'];
$description=$_POST['des'];
echo <<<EOD
<table border='1' width='400' align='center'>
<tr><Th>name</th><th>Des</th></tr>
<tr><Td>$name</td><td>$description</td></tr>
</table>
EOD;
}
?>