ASP自动提交,不需要按提交键(高分求助)
<%@LANGUAGE="VBSCRIPT"CODEPAGE="936"%><!--#includefile="../Connections/customer.asp"-...
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Connections/customer.asp" -->
<%
。。。。。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>发票申请</title>
<link href="/css/webcss.css" rel="stylesheet" type="text/css" >
</head>
<body onload=two()>
<form ACTION="<%=MM_editAction%>" name="form1" method="POST" >
<input name="order_invoice" type="text" id="order_invoice" value="1" size="4">
<input type="submit" name="Submit" value="提交">
<input type="hidden" name="MM_update" value="form1">
<input type="hidden" name="MM_recordId" value="<%= dw_orders.Fields.Item("order_id").Value %>">
</form>
</body>
</html>
<SCRIPT LANGUAGE="vbScript">
sub two()
form1.submit()
//action="<%=MM_editAction%>"
end sub
</SCRIPT>
<%
dw_orders.Close()
Set dw_orders = Nothing
%>
DW原代码(前部分已省略),如何写好VB脚本在body中onload自动触发不需按提交键。 展开
<!--#include file="../Connections/customer.asp" -->
<%
。。。。。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>发票申请</title>
<link href="/css/webcss.css" rel="stylesheet" type="text/css" >
</head>
<body onload=two()>
<form ACTION="<%=MM_editAction%>" name="form1" method="POST" >
<input name="order_invoice" type="text" id="order_invoice" value="1" size="4">
<input type="submit" name="Submit" value="提交">
<input type="hidden" name="MM_update" value="form1">
<input type="hidden" name="MM_recordId" value="<%= dw_orders.Fields.Item("order_id").Value %>">
</form>
</body>
</html>
<SCRIPT LANGUAGE="vbScript">
sub two()
form1.submit()
//action="<%=MM_editAction%>"
end sub
</SCRIPT>
<%
dw_orders.Close()
Set dw_orders = Nothing
%>
DW原代码(前部分已省略),如何写好VB脚本在body中onload自动触发不需按提交键。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询