📄 vip.asp
字号:
<!--#include file="top.asp"-->
<html>
<% if session("user_name")="" then
response.write "<script language=javascript>alert('请先登陆后操作,谢谢合作!');history.go(-1);</script>"
response.End
end if%>
<td width="15" height="3"> </td>
<!--#include file="leftuser.asp"--></td>
<td width="15" height="30"> </td>
<% function checkinput(incc)
checkinput = false
if instr(incc,"<")>0 or instr(incc,">")>0 then
checkinput = true
exit function
end if
end function
if request("action")="edit" then
if checkinput(trim(request("user_namec"))) or checkinput(trim(request("user_qq"))) or checkinput(trim(request("user_tel"))) or checkinput(trim(request("user_adds"))) or checkinput(trim(request("user_postcode"))) or checkinput(trim(request("user_mail"))) or checkinput(trim(request("user_pass"))) then
response.write "<script language=javascript>alert('您的输入字符中含有<、>类似字符,此类字符不适合输入,请检查更正,谢谢配合!');history.go(-1);</script>"
response.End
end if
sql="select * from [user] where user_name='"&session("user_name")&"'"
rs.open sql,conn,3,3
rs("user_pass")=replace(trim(request("user_pass")),"'","''")
rs("user_adds")=replace(trim(request("user_adds")),"'","''")
rs("user_mail")=replace(trim(request("user_mail")),"'","''")
rs("user_tel")=replace(trim(request("user_tel")),"'","''")
rs("user_qq")=replace(trim(request("user_qq")),"'","''")
rs("user_regip")=request.servervariables("remote_addr")
rs("user_postcode")=replace(trim(request("user_postcode")),"'","''")
rs("user_namec")=replace(trim(request("user_namec")),"'","''")
if request("macaddress")="0" then
rs("user_jy")=""
end if
rs.update
rs.close
response.write "<script language=javascript>alert('修改成功!');</script>"
end if
%>
<td width="600" valign="top">
<%
sql="select * from [user] where user_name='"&session("user_name")&"'"
rs.open sql,conn,3,3
%>
<table border="0" width="600" cellspacing="0" cellpadding="0" height="379">
<tr>
<td height="100%" width="613" valign="top"><form method="POST" action="vip.asp?action=edit">
<div align="center">
<table border="1" width="95%" cellpadding="0" id="table1" height="368" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" cellspacing="0">
<tr>
<td colspan="2" valign="middle" height="36">
<p align="left"><font color="#FF0000"><b>
<font size="3">会 员 资 料 修 改:</font></b></font></td>
</tr>
<tr>
<td width="23%" align="right" style="padding:5px; " height="36">用户名 :</td>
<td width="75%" style="padding:5px; " height="36"><%=rs("user_name")%>
</td>
</tr>
<tr>
<td width="23%" align="right" style="padding:5px; " height="36">密 码 :</td>
<td width="75%" style="padding:5px; " height="36">
<input type="password" name="user_pass" size="20" class="ipt" value="<%=rs("user_pass")%>"><font color="#FF0000">
*</font></td>
</tr>
<tr>
<td width="23%" align="right" style="padding:5px; " height="36">确认密码 :</td>
<td width="75%" style="padding:5px; " height="36">
<input type="password" name="user_pass2" size="20" class="ipt" value="<%=rs("user_pass")%>"><font color="#FF0000">
*</font></td>
</tr>
<tr>
<td width="23%" align="right" style="padding:5px; " height="37">E-mail :</td>
<td width="75%" style="padding:5px; " height="37">
<input type="text" name="user_mail" size="20" class="ipt" value="<%=rs("user_mail")%>"><font color="#FF0000">
*</font></td>
</tr>
<tr>
<td width="23%" align="right" style="padding:5px; " height="37">地 址 :</td>
<td width="75%" style="padding:5px; " height="37">
<input type="text" name="user_adds" size="30" class="ipt" value="<%=rs("user_adds")%>"><font color="#FF0000">
*</font></td>
</tr>
<tr>
<td width="23%" align="right" style="padding:5px; " height="37">电 话 :</td>
<td width="75%" style="padding:5px; " height="37">
<input type="text" name="user_tel" size="20" class="ipt" value="<%=rs("user_tel")%>"><font color="#FF0000">
*</font></td>
</tr>
<tr>
<td width="23%" align="right" style="padding:5px; " height="37">邮 编 :</td>
<td width="75%" style="padding:5px; " height="37">
<input type="text" name="user_postcode" size="20" class="ipt" value="<%=rs("user_postcode")%>"><font color="#FF0000">
*</font></td>
</tr>
<tr>
<td width="23%" align="right" style="padding:5px; " height="37">
<font face="Arial">Q Q </font>:</td>
<td width="75%" style="padding:5px; " height="37"><input type="text" name="user_qq" size="20" class="ipt" value="<%=rs("user_qq")%>">
</td>
</tr>
<tr>
<td width="23%" align="right" style="padding:5px; " height="37">真实姓名 :</td>
<td width="75%" style="padding:5px; " height="37">
<input type="text" name="user_namec" size="20" class="ipt" value="<%=rs("user_namec")%>"> <font color="#FF0000">
*</font></td>
</tr>
<tr>
<td width="23%" align="right" style="padding:5px; " height="37">
网卡绑定:</td>
<td width="75%" style="padding:5px; " height="37">
<input type="radio" value="1" name="macaddress" <%if rs("user_jy")&"1"<>"1" then%>checked<%end if%>>网卡绑定
<input type="radio" value="0" name="macaddress" <%if rs("user_jy")&"1"="1" then%>checked<%end if%>>取消绑定</td>
</tr> <%rs.close%>
<tr>
<td width="95%" align="right" colspan="2" valign="middle" height="37">
<p align="center"><input type="submit" value="提交" name="B1">
<input type="reset" value="重置" name="B2"></td>
</tr>
</table>
</div>
<p align="center">
</p>
</form> </td>
</tr>
</table>
</td>
<td width="1" background="images/line.jpg"></td>
</tr>
</table>
<!--#include file="copy.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -