php+JavaScript

来源:百度知道 编辑:UC知道 时间:2024/06/27 11:17:18
<div id="divshow">
<form id="fshow" name="fshow" method="post" action="">
<label>
<textarea name="txtshow" cols="45" rows="12" id="txtshow"></textarea>
</label>
</form>
</div>
<div id="divsender">
<form id="fsend" name="fsend" method="post" action="">
<label>
<textarea name="txtsend" cols="45" rows="10" id="txtsend"></textarea>
</label>
<p>
<label>
<input name="history" type="button" id="history" value="聊天记录" />      
<input name="submit" type="submit" id="submit" value="提交&

建议加 一处理页面,可用来让数据插入到mysql数据库里,加上<script>history.back();</script>这样看来就有一个页面的感觉,
然后在你的这个页面加上提取数据库内容的代码,将其赋值给一变量
如$i,在后面可用类似于<script>document.fsend.history.value=<?php
echo $i; ?></script>的方法赋值!!!