<form name=form1 action="input2.php" target="show">

解决方案 »

  1.   

    <form name=form1 action="input2.php">
                             ~~~~~~~~~显然要转至input2.php了,你的意思是什么?
    转input.php?
    <form name=form1 action="input.php">
      

  2.   

    to:TobyLee(秋衫客)
      target="show"以后,发送消息以后,名为show框架中,不再从数据库中读出发言内容了,而是得到一个空白页(仅包含客户端发的一条的内容)这样,不能实现和朋友聊天的构想,是不是我哪里还没弄明白啊 ?
      

  3.   

    to:okdw(零零发财)
      我不要它转至input2.php,我的意思也不是转input.php,我的意思是点击发送按钮以后,input.php不必刷新了,如果<form name=form1 action="input.php">的话,发送以后,就会刷新一次,使本来已经选中的分屏,滚屏等复选框还原,以至于再发消息的时候,重新选上。这样的聊天室显然是不行的。
      

  4.   

    处理完后input2.php文件后
    在后面加上:
    <script>
    self.location.href='input.php';
    </script>也可以下一下我写的吧,
    地址:http://www.phome.net/news/document/42/463.html