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>"
'其他略去
%>