如果是聊天内容框架刷新的话不行的,刷新效果太明显了。介意你使用ajax
解决方案 »
- 请教一个解决方案
- 关于隐藏表单的一个问题
- php 数组key与value的问题
- 请问大家php里对mysql操作完以后,需要关闭数据库吗??
- form上传页面问题
- 请帮忙看看下面两段程序中,为什么在通过存储过程保存在数据库中的时候,不能将数据进行保存?
- 用了php5.2以后..
- 这种菜单怎么实现?
- 使用PHP4中的 IntegratedTemplate类实现HTML和PHP代码分离--教程
- $ch = curl_init(); Parse error: syntax error, unexpected T_VARIABLE
- php+mysql程序优化 帮忙看看
- mysql的like或者regexp如何取得相反的结果?
-------------------------------
message.php:
<form action="postmsg.php" target="display" method="post">
<input type="text" name="msg" size="30" maxlength="50">
<input type="submit" value="POST">
</form>
-----------------------------in the display frame:-------------------------
postmsg.php:
<?php
//codes to add messages into DB
header('location:display.php');
?>display.php:
//show the messages-------------------------
this will be inefficient when there are too many messages...
---------------------------------I agree,in ajax you can use "innerHTML+=" as you can get less data from db.in asp,it is so easy to create a chatroom using application without db.