<%
set cp=server.createobject("adodb.recordset")
sql="select * from User where id = '"& session("U_ID") &"'"
cp.open sql,Conn,1,1
if not cp.eof then
U_Potoh = cp("U_Potoh")
end if
cp.close
set cp=nothing
%>
<h2>会员中心</h2>
<%
if session("User_N") = "" then
%>
<!--会员中心-->
<form action="loginE.asp" method="post" name="myf" id="myf">
<table width="100%" border="0">
<tr>
<td width="24%" height="34" style="text-align: right"><br />
用户名</td>
<td width="76%"><input type="text" name="UserName" id="UserName" οnfοcus="this.select(); " /></td>
</tr>
<tr>
<td height="34" style="text-align: right"><br />
密 码</td>
<td><input type="password" name="password" id="password" value="" οnfοcus="this.select(); " /></td>
</tr>
<tr>
<td height="38" style="text-align: right"><br />
验证码</td>
<td><input name="VerifyCode" size="6" maxlength="4" style=" width:20%;" onFocus="this.select(); "><img src="inc/VerifyCode.asp" align="absmiddle"></td>
</tr>
<tr>
<td height="44"> </td>
<td><input type="submit" name="sublgoin" id="sublgoin" value="登录" style="width:auto" οnclick="return ck()"><input type="reset" name="sublgoin" id="sublgoin" value="重置" style="width:auto"></button></td>
</tr>
</table>
</form>
<div align="center"> <a href="User.asp" target="_blank" class="Regis">新用户注册</a></div>
<%else%>
<%
set cp=server.createobject("adodb.recordset")
sql="select * from GJ where MUserid = '"& session("U_ID") &"' and SHBM = 1"
cp.open sql,Conn,1,1
if not cp.eof then
a = 1
else
b = 2
end if
cp.close
set cp=nothing
%>
<table width="100%" height="189" border="0">
<tr>
<td width="99" rowspan="3"> <img src="<%=U_Potoh%>" height="180" style="width:103px; height:101px" />
<br /> </td>
<td height="33"><strong>用户名</strong>:<%=session("User_N")%></td>
</tr>
<tr>
<td height="43"><strong>登录时间</strong>:<%=formatdatetime(session("U_loginTime"),2)%></td>
</tr>
<tr>
<td height="28"><strong>登录IP</strong>:<%=Request.ServerVariables("REMOTE_ADDR")%></td>
</tr>
<tr>
<td height="20"><div align="center"> <a href="UserMeg.asp?action=jbxx&id=<%=session("U_ID")%>">个人信息设置</a></div></td>
<td><strong>上线次数</strong>:<%=session("U_loginCs")%>次</td>
</tr>
<tr>
<td height="19" colspan="2" bgcolor="#CCCCCC"><div align="center"><a href="Login.asp"><strong>注
销</strong></a><br />
</div></td>
</tr>
</table>
<%
end if
%>
</div>
怎么样让用户名和密码保存一月
最新推荐文章于 2023-05-04 17:18:11 发布