ASP 当页直接提交表单 急 在线等!
2个回答
展开全部
<body >
<table width="200" border="0" cellspacing="0" cellpadding="0">
<form name="login" method="post" action="login_bbs.asp">
<tr>
<td width="60">用户名:</td>
<td><input name="username" type="text" id="username" value="<%=username%>" size="20"></td>
</tr>
<tr>
<td>密码:</td>
<td><input name="userpassword" type="password" id="userpassword" value="<%=userpassword%>" size="20"></td>
</tr>
<tr>
<td><input type="submit" name="login" value="登陆"></td>
<td> </td>
</tr>
</form>
</table>
<script language="JavaScript" type="text/JavaScript">
login.submit()
</script>
</body>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<form name="login" method="post" action="login_bbs.asp">
<tr>
<td width="60">用户名:</td>
<td><input name="username" type="text" id="username" value="<%=username%>" size="20"></td>
</tr>
<tr>
<td>密码:</td>
<td><input name="userpassword" type="password" id="userpassword" value="<%=userpassword%>" size="20"></td>
</tr>
<tr>
<td><input type="submit" name="login" value="登陆"></td>
<td> </td>
</tr>
</form>
</table>
<script language="JavaScript" type="text/JavaScript">
login.submit()
</script>
</body>
参考资料: http://zhidao.baidu.com/question/15641303.html
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询