| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 379 人关注过本帖
标题:[求助]看看哪里错啦!
只看楼主 加入收藏
fonxuan
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-7-7
收藏
 问题点数:0 回复次数:1 
[求助]看看哪里错啦!

我有段代码
是用来编辑用户,但不知道如何修改,传到网上用管理员身份登陆修改用户,一按显示出“”不可以哦“
我只求我按提交就提示更新成功并真的更新成功,谢谢!!!
最好给我代码好吗!!谢谢。。。。

--------------------------------------------------------------
<%
if session("ok")="" then
response.write"<script>alert('对不起,请先登陆!');history.back();</script>"
end if
%>
<link href="../style.css" rel="stylesheet" type="text/css">
<!--#include file="conn.asp"-->

<%
edit=trim(request("edit"))
if edit="save" then
response.write "<script language=javascript>alert('不可以哦!怎么办');history.back(-1)</script>"
else

set rs = server.CreateObject("adodb.recordset")
sql = "Select * from MB_Member where M_ID=" & request("id") & ""
rs.open Sql,my_conn,1,1
end if
%>
<form action=edit.asp?id=<%=request("id")%> method=post name=reg>
<div align="center">
<center>
<table border="1" cellpadding="3" cellspacing="0" width="534" bordercolor="#ACACAC" height="257" style="border-collapse: collapse">
<tr>
<td colspan="2" width="526" height="16" bgcolor="#BCBCBC">
<p align="center"><font color="#FFFFFF">用户资料修改</font></td>
</tr>
<tr>
<td width="115" height="5" bgcolor="#DEDEDE">用户名:</td>
<td width="403" height="5" bgcolor="#DEDEDE"><%=rs("M_Name")%></td>
</tr>
<tr>
<td width="115" height="3" bgcolor="#DEDEDE">用户组:</td>
<td width="403" height="3" bgcolor="#DEDEDE">
<select size="1" name="vip" style="border: 1px solid #ACACAC; background-color: #FFFFFF">
<option value="<%=rs("M_VIP")%>" selected><%=rs("M_VIP")%>会员</option>
<option value="普通">普通会员</option>
<option value="VIP">VIP会员</option>
</select></td>
</tr>
<tr>
<td width="115" height="5" bgcolor="#DEDEDE">消费金额:</td>
<td width="403" height="5" bgcolor="#DEDEDE">
<input type="text" name="money" size="15" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("M_Sale")%>">
元</td>
</tr>
<tr>
<td width="115" height="19" bgcolor="#DEDEDE">E-mail:</td>
<td width="403" height="19" bgcolor="#DEDEDE">
<input type="text" name="email" size="24" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("M_Email")%>"></td>
</tr>

<tr>
<td width="115" height="19" bgcolor="#DEDEDE">性别:</td>
<td width="403" height="19" bgcolor="#DEDEDE"><select size="1" name="sex" style="border: 1px solid #ACACAC; background-color: #FFFFFF">
<option><%=rs("M_sex")%></option>
<option>女</option>
<option>男</option>
</select></td>
</tr>

<tr>
<td width="115" height="5" bgcolor="#DEDEDE">QQ号码:</td>
<td width="403" height="5" bgcolor="#DEDEDE">
<input type="text" name="qq" size="15" maxlength="12" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("M_QQ")%>"></td>
</tr>

<tr>
<td width="115" height="3" bgcolor="#DEDEDE">联系电话:</td>
<td width="403" height="3" bgcolor="#DEDEDE">
<input type="text" name="phone" size="18" maxlength="12" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("M_Phone")%>"></td>
</tr>
<tr>
<td width="115" height="3" bgcolor="#DEDEDE">身份证号:</td>
<td width="403" height="3" bgcolor="#DEDEDE">
<input type="text" name="card" size="21" maxlength="20" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("M_Card")%>"></td>
</tr>

<tr>
<td width="115" height="2" bgcolor="#DEDEDE">个人网站:</td>
<td width="403" height="2" bgcolor="#DEDEDE">
<input type="text" name="web" size="24" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("M_Web")%>"></td>
</tr>

<tr>
<td width="115" height="1" bgcolor="#DEDEDE">申请开通手机号码:</td>
<td width="403" height="1" bgcolor="#DEDEDE">
<%=RS("mp")%><input type="text" name="mp" size="24" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("mp")%>"></td>
</tr>
<tr>
<td width="115" height="1" bgcolor="#DEDEDE">制定短号</td>
<td width="403" height="1" bgcolor="#DEDEDE">
<input type="text" name="dh" size="24" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("dh")%>"></td>
</tr>
<tr>
<td width="115" height="1" bgcolor="#DEDEDE">预开通日期:</td>
<td width="403" height="1" bgcolor="#DEDEDE">
<%=RS("kt")%><input type="text" name="kt" size="30" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("kt")%>"></td>
</tr>
<tr>
<td width="115" bgcolor="#DEDEDE">申请日期:</td>
<td width="403" bgcolor="#DEDEDE">
<%=RS("sqdata")%><input type="text" name="sqdata" size="24" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("sqdata")%>"></td>
</tr>
<tr>
<td width="115" bgcolor="#DEDEDE">卡类型:</td>
<td width="403" bgcolor="#DEDEDE">
<%=RS("type")%><input type="text" name="ktype" size="24" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("ktype")%>"></td>
</tr>
<tr>
<td width="115" bgcolor="#DEDEDE">服务费状态:</td>
<td width="403" bgcolor="#DEDEDE">
<%=RS("fy")%><select size="1" name="sex0" style="border: 1px solid #ACACAC; background-color: #FFFFFF">
<option><%=rs("fy")%></option>
<option>已提交</option>
<option>未提交</option>
</select></td>
</tr>

<tr>
<td width="526" colspan="2" height="15" bgcolor="#BCBCBC">
<p align="center"><font color="#FFFFFF">您的密码</font></td>
</tr>

<tr>
<td width="115" height="19" bgcolor="#DEDEDE">用户密码:</td>
<td width="403" height="19" bgcolor="#DEDEDE">
<input name="password" size="20" maxlength="20" style="border: 1px solid #ACACAC; background-color: #FFFFFF" value="<%=rs("M_Pass")%>"></td>
</tr>
<tr>
<td width="526" height="21" colspan="2" align="center" bgcolor="#BCBCBC">
<input type="hidden" name="edit" value="save">
<input type="hidden" name="name" value="<%=session("name")%>">
<input type="submit" value=" 提 交 " name="B1" style="color: #FFFFFF; border: 1px solid #DEDEDE; background-color: #ACACAC">
<input type="button" value=" 返 回 " onclick=javascript:history.go(-1) style="color: #FFFFFF; border: 1px solid #DEDEDE; background-color: #ACACAC"></td>
</tr>
</table>
</center>
</div>
</form>

搜索更多相关主题的帖子: include file 
2007-07-07 18:00
fonxuan
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-7-7
收藏
得分:0 

我自己顶一下。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

2007-07-07 19:36
快速回复:[求助]看看哪里错啦!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014341 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved