最强弃少免费阅读全文:动态添加文本框

来源:百度文库 编辑:高校问答 时间:2024/05/11 05:35:44
如何实现这个操作:
页面1.asp上有个文本框,
点击页面2.asp的一个连接,
使数据自动添加在页面1.asp的文本框内.
同时关2.asp
类似与qq的表情选择
该怎么编写代码?

在2.ASP 中:
<form name="frm1" method="post" action="1.asp">
<input name="keyword" type="text" size="20" maxlength="20">
<input name="Submit" type="submit" value="提交">
</form>
在1.ASP 中:
<%
dim textfield
session("keyword")=Request.form("keyword")
textfield=session("keyword")
%>
<form name="frm2" method="post" action=" " >
<input name="keyword" type="text" value="<%=textfield%>" size="20" maxlength="50">
</form>
应该就是这样吧!!!