asp文件自动提交表单功能
2009-04-22 10:38:59 来源:WEB开发网核心提示:1.asp 程序代码<body > <table width="200" border="0" cellspacing="0" cellpadding="0"> <form name="login&q
1.asp
程序代码
<body >
<table width="200" border="0" cellspacing="0" cellpadding="0">
<form name="login" method="post" action="2.asp">
<tr>
<td width="60">用户名:</td>
<td><input name="username" type="text" id="username" value="55" size="20"></td>
</tr>
<tr>
<td>密码:</td>
<td><input name="userpassWord" type="password" id="userpassword" value="66" 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>
2.asp
程序代码
<%
username=request.form("username")
response.write username&"<hr size=1>"
'其他略去
%>
[]
赞助商链接