echo "<a href=\"index.php?page=".$last."\">尾页</a> | "; } elseif($page==$pages&&$page!=1) { echo "<a href=\"index.php?page=".$first."\">首页</a> | "; echo "<a href=\"index.php?page=".$prev."\">上一页</a> | "; echo "下一页 | "; echo "尾页 | "; } elseif($page==$pages) { echo "首页 | "; echo "上一页 | "; echo "下一页 | "; echo "尾页 | "; } else { echo "首页 | "; echo "上一页 | "; echo "下一页 | "; echo "尾页 | "; } ?> 共 <span><?= $pages ?></span> 页 | 当前第 <span><?= $page ?></span> 页 | 共 <span><?=$numrows ?></span> 条留言</p> </div>
<?php mysql_close(); ?>
<?php require_once("footer.php"); ?>
5、post.php(提交留言页面)phpma.com
<? require_once("header.php"); ?> <div id="input"> <form method="post" action="input.php" name="form1"> <h1>提交留言</h1> <p>姓名 :<input type="text" name="name" size="20" class="y" /> </p> <p>性别 :<input name="sex" type="radio" value="男" checked/> 帅锅 <input type="radio" name="sex" value="女"/> 美女</p> <p>Q Q :<input type="text" name="qq" class="y" /> (可选填)</p> <p>Email:<input type="text" name="email" class="y" /> (可选填)</p> <p>留言内容:</p> <p><textarea name="info" rows="5" cols="40"></textarea></p> <p class="cen"> <input type="submit" value="偶填好了" /> <input type="reset" value="偶要重写"> </p> <p class="cen1">银子留言板 Version 1.0</p> </form> </div> </body> </html>
6、input.php(插入留言)phpma.com
7、update.php(修改留言页)phpma.com
8、updatepost(修改提交页)phpma.com
9、delete.php(删除留言页)phpma.com
(阅读次数:)
共6页: 上一页 [1] [2] 3 [4] [5] [6] 下一页
|