代码 4-45 简化后的“search.php”代码
search.php
<?php include "shared/head.php"; ?> <form action="result.php" method="POST"> <table> <tr> <td> <input type="text" name="query" placeholder="请输入检索词" > </td> <td> <button type="submit">搜索</button> </td> </tr> </table> </form> <?php include "shared/foot.php" ?>