好像不行啊,下面提交了会弹出消息"ddd",可确定后不能显示"eee"
<%
if request("action")="save" then
response.write "eee"
response.end
end if
%>
<SCRIPT language=javascript1.2>function AddCard()
{
if (!confirm('真的要提交吗???????'))
return ;
else
{ alert('ddd');
document.form1.submit();
//这里的代码是表单提交,怎么写??? } }
</SCRIPT>
<FORM name=form1 action=addcard.asp?action=save method=post>
<INPUT size=25 name=contractno>
<INPUT border=0 cache src="image/ok.gif" type=image onclick="javascript:AddCard();">
</form>
<%
if request("action")="save" then
response.write "eee"
response.end
end if
%>
<SCRIPT language=javascript1.2>function AddCard()
{
if (!confirm('真的要提交吗???????'))
return ;
else
{ alert('ddd');
document.form1.submit();
//这里的代码是表单提交,怎么写??? } }
</SCRIPT>
<FORM name=form1 action=addcard.asp?action=save method=post>
<INPUT size=25 name=contractno>
<INPUT border=0 cache src="image/ok.gif" type=image onclick="javascript:AddCard();">
</form>
return ;
else
{ confirm("控件1的数据"+document.form1.input1.value+"\n控件1的数据"+document.form1.input2.value)
{
document.form1.submit();
//这里的代码是表单提交,怎么写???
} }
document.form1.submit();
addcard.asp是本页面
<!--#include file =conn.asp-->
<%
if request("step2")<>"" then
response.write "eee"
response.end
'response.redirect "tmpPass.asp?flag=4&contractno=" & request("contractno") & ""
end ifconn.close
set conn=nothing%><HTML><HEAD><TITLE>登记卡片</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<LINK href="css/bank.css" rel=stylesheet type=text/css>
<link rel="stylesheet" href="forum_admin.css" type="text/css">
<SCRIPT language=javascript1.2>function Add()
{
if (!confirm('真的要登记卡片吗???????'))
return ;
else
{
document.form1.submit();
} }</SCRIPT>
</HEAD>
<BODY bgColor=#D6DFF7 leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=555 height="9">
<TBODY>
<TR>
<TD width=10 height="10"><IMG height=19 src="image/top1.gif"
width=10></TD>
<TD height=10 width=400> <A class=title0 href=""> <FONT color=#000000>登记卡片</FONT></A>
<IMG align=absBottom height=19 src="image/arrow.gif" width=15> <A class=title0 href="">
<FONT color=#000000>第一步</FONT></A> </TD>
<TD align=right width=264 height="10">
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=555>
<TBODY>
<TR bgColor=#6688E3>
<TD><IMG height=1 src="image/spacer.gif" width=1>
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=555>
<TBODY>
<TR bgColor=#6688E3>
<TD>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=553>
<TBODY>
<TR bgColor=#ffffff>
<TD><BR>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="90%">
<TBODY>
<TR>
<TD align=middle height=19 vAlign=top width="5%">
<P><IMG align=top height=13 src="image/arrow1.gif" width=18></P></TD>
<TD height=15 width="95%">
<FONT color=#737373>请在下列输入框填入合同号,点击"确定"开始进行相关资料登记。
</FONT>
</TD>
</TR>
</TBODY>
</TABLE>
<HR color=#a3a3a3 SIZE=0 width="90%">
<FORM name=form1 action="?action=step2" method=post>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="90%">
<TBODY>
<TR>
<TD vAlign=top width="80%">
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD background=image/bg01.gif height=18 width="40%">
<B>请输入</B></TD>
<TD height=18 width="80%"> </TD>
</TR>
</TBODY>
</TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR bgColor=#b3b3b3>
<TD>
<TABLE border=0 cellPadding=0 cellSpacing=1 width="100%">
<TBODY>
<TR align=middle bgColor=#edf2fc>
<TD><BR>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="98%">
<TBODY>
<TR>
<TD id=zz height=26 noWrap align=right>合同号:</td>
<td>
<INPUT maxLength=25 size=25 name=contractno>
</TD>
</TR>
<TR>
<TD align=middle colSpan=2 height=35>
<INPUT border=0 cache height=21 src="image/ok.gif" type=image width=70 onclick="javascript:Add();">
</TD></TR></TBODY></TABLE>
</TD>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
<TD width="10%"> </TD>
</TR></TBODY></TABLE> </form>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE></BODY>
</HTML>
<INPUT border=0 cache height=21 src="image/ok.gif" type=image width=70 onclick="javascript:Add();">
<%
if request("step2")<>"" then
response.write "eee"
response.end
'response.redirect "tmpPass.asp?flag=4&contractno=" & request("contractno") & ""
end ifconn.close
set conn=nothing%>
<SCRIPT language=javascript1.2>
function checkdata()
{ var strs=/^[\d\.]*$/;
var lcontractno=strs.test(document.form1.contractno.value) if (document.form1.contractno.value == "")
{
alert("合同号必须填写!");
document.form1.contractno.focus();
return false;
}
if (!lcontractno)
{
alert("合同号中只能输入数字!");
document.form1.contractno.focus();
return false;
} return true
}function check()
{
if (!confirm('真的要登记卡片吗???????'))
return;
else
{
document.form1.submit();
}
}
</SCRIPT>
<FORM name=form1 action=addcard.asp?action=step2 method=post onsubmit="return checkdata()">
<INPUT border=0 cache height=21 src="image/ok.gif" type=image width=70 onclick="check();">
</form>
<input type=button onclick=check() value="确定">
可不会调用checkdata()了????
直接submit了