一个很最简单的问题,可是.....

我想在首页(index.htm)中包括以下代码用于实现邮件列表的功能。可是当输入一个邮箱点订阅时,不是弹出send1.asp页面,,而是send1.asp把index.htm给替换了。我的问题就是当点击“订阅”时,怎么才能弹出新的页面用于显示send1.asp,而index.htm还保存不变??

<form method="POST" action="send1.asp">
<p align="center"><input type="text" name="fsemail" size="20"></p>
<p align="center"><input type="submit" value="订阅" name="B1"><input type="submit" value="退订" name="td"></p>
</form>
[453 byte] By [cattleman-小娇] at [2008-2-13]
# 1
简单??
xueao-不得不爱 at 2007-9-30 > top of Msdn China Tech,Web,ASP...
# 2
<form method="POST" action="send1.asp" target="_blank">

或者在你的send1.asp页面的最后进行重定向,
response.redirect("index.htm")
rohn-土豆丝 at 2007-9-30 > top of Msdn China Tech,Web,ASP...
# 3
谢谢rohn(土豆丝) ,100分全给你吧。。
cattleman-小娇 at 2007-9-30 > top of Msdn China Tech,Web,ASP...
# 4
还是用
<form method="POST" action="send1.asp" target="_blank">
好。
szjhxu-天野 at 2007-9-30 > top of Msdn China Tech,Web,ASP...
# 5
target定义打开方式
zhusuhao-不以为然 at 2007-9-30 > top of Msdn China Tech,Web,ASP...
# 6
<form method="POST" action="send1.asp" target="_blank">这样好,

用重定向后打开的页面里就没有你开始输入的email地址了。
zhenhao-轻松XP at 2007-9-30 > top of Msdn China Tech,Web,ASP...
# 7
把index.htm改成index.asp;
用Trim接受变量;
response.redirect("index.asp?变量=变量名&变量2=变量名2");

在index.asp中,需要显示变量的地方用response.write;

即可

:)
global_boy-闲人 at 2007-9-30 > top of Msdn China Tech,Web,ASP...