是一个表单提交验证用户名密码。密码为xxx未知,我试过加双引号或单引号都被Request.Form转成字符串。有那位大虾能破解!以下是原码
<% if (Request.Form("Username")="xxx" and Request.Form("Password")="xxx") then %>
<% Response.Redirect "Home.asp" %>
<% end if %>
<form name="form1" method="post" action="Default.asp">
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<td>Username:</td>
<td>
<input type="text" name="Username">
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<input type="password" name="Password">
</td>
</tr>
<tr>
<td> </td>
<td>
<input type="submit" name="Submit" value="Submit">
</td>
</tr>
</table>
</form>
<% if (Request.Form("Username")="xxx" and Request.Form("Password")="xxx") then %>
<% Response.Redirect "Home.asp" %>
<% end if %>
<form name="form1" method="post" action="Default.asp">
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<td>Username:</td>
<td>
<input type="text" name="Username">
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<input type="password" name="Password">
</td>
</tr>
<tr>
<td> </td>
<td>
<input type="submit" name="Submit" value="Submit">
</td>
</tr>
</table>
</form>