怎么样让用户名和密码保存一月


<%
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 />
      密&nbsp;&nbsp;&nbsp;码</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">&nbsp;</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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值