就是郁闷啊,我没用啊,才重启后运行该文件就不行啊……
都没打开过其它程序!
现在有点怀疑这句是不是有错了哦……
Server.Transfer ("login2.asp")
重复调用本文件应该不会大问题啊……
本文件剩下的代码是:
<%if session("user")="" or session("pass")="" then%>
<table cellspacing="0" cellpadding="0">
<tr>
<td valign="top" colspan="2" height="35"><img src="Images/login.gif" width="211" height="42" /></td>
</tr>
<tr>
<td width="21" background="skins/myweb/news_left_bg.gif"> </td>
<td valign="top" width="190" background="skins/myweb/news_center_bg.gif"><table cellspacing="0" cellpadding="0" width="80%" align="center" border="0">
<form action="login2.asp?action=login" method="POST" name="login" id="login" onSubmit="return checkuser()">
<tbody>
<tr>
<td width="30%" height="25">用 户:</td>
<td width="70%" height="25"><input size="12" name="username" /></td>
</tr>
<tr>
<td height="25">密 码:</td>
<td height="25"><input type="password" size="12" value="" name="password" /></td>
</tr>
<tr>
<td align="middle" colspan="2"><input name="submit" type="submit" value="登 陆" />
<input name="reset" type="reset" value="重 写" /></td>
</tr>
<tr>
<td align="middle" colspan="2"><a href="reg.asp">注册新用户</a> <a href="Passrev.asp"> 忘记密码</a></td>
</tr>
</tbody>
</form>
</table></td>
</tr>
</table>
<%else%>
<table cellspacing="0" cellpadding="0">
<tr>
<td valign="top" colspan="2" height="35"><img src="Images/login.gif" width="211" height="42" /></td>
</tr>
<tr>
<td width="21" background="skins/myweb/news_left_bg.gif"> </td>
<td valign="top" width="190" background="skins/myweb/news_center_bg.gif"><table cellspacing="0" cellpadding="0" width="80%" align="center" border="0">
<form method="post" name="login" id="login" onSubmit="return checkuser()">
<tbody>
<tr>
<td height="25"><% =session("user") %>
,欢迎您!</td>
</tr>
<tr>
<td height="25"><a href="Membercenter.asp?user=<%=session("user")%>">会员中心</a> <a href="Loginout.asp?action=loginout">退出登录</a></td>
</tr>
</tbody>
</form>
</table></td>
</tr>
</table>
<%end if%>