$rs->name."</td></tr>"; echo "<tr><td>留言:".$rs->content."</td></tr></table><br/>"; echo "............................................................................................................................."; } mysql_close(); ?> <br><br><br> <form action="updata.php" method="post" name="name1"> 姓名:<input type="text" name="user_name"><br> 留言:<textarea name="post_contents" rows="10" cols="50"></textarea> <input type="submit" value="提交留言"> </form> </body> </html>
updata.php页再加个header("location:index.php");语句重定向到主页面`~~ updata.php <? $name=$_POST['user_name']; $content=$_POST['post_contents']; $conn=mysql_connect("localhost:6033", "root", ""); mysql_qu 上一页 [1] [2] [3] [4] [5] [6] [7] [8] 下一页
|