文本的问题
password.txt中的内容是
rrr
888
怎么才能把request.form("username")和request.form("password")分别对应rrr和888
我下面的程序能对应一个
两个对应我就不会做了
<%if request.form="" then%>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="600" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#6A4000">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/index1.jpg" width="600" height="244"></td>
</tr>
<tr>
<td height="181" background="images/index2.jpg"><form name="form1" method="post" action="index.asp">
<table width="200" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td width="40"><div align="center">用户:</div></td>
<td><div align="right">
<input name="username" type="text" id="username">
</div></td>
</tr>
<tr>
<td><div align="center">密码:</div></td>
<td><div align="right">
<input name="password" type="text" id="password">
</div></td>
</tr>
<tr>
<td> </td>
<td><div align="center"><input type="image" src='images/buttom.gif'></div></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<%else
set fso=server.createobject("scripting.filesystemobject")
pf=server.mapPath("password.txt")
set sto=fso.opentextfile(pf,1)
'do until sto.atendofstream
pass=server.htmlencode(sto.readline)
'loop
if request.form("password")=pass then
response.write pass
else
response.write request.form("password")
end if
end if%>