登录发现更多内容
首页
分类
目录
索引
标签
酷站
首页
BBS
搜索
搜索
本版
帖子
用户
账号
自动登录
找回密码
密码
登录
加入
登录
好友
帖子
收藏
道具
勋章
任务
设置
我的收藏
退出
骑士爱好者
»
首页
›
【KOFANS归档 KO. ARCHIVE】
›
网页、开发工具「WEB&TOOLS」
›
求修改中文名的asp!
求修改中文名的asp!
laoyou456
2008-9-17 12:59:56
1168
返回列表
[ 复制链接 ]
laoyou456
DMM DUGA XCREAM SOKMIL等日本PPV站视频代购oa.jppv.net
前面用了个 但是一修改就出现 一个角色只能修改一次 其实什么也没修改 郁闷了好久
那个大虾无私分享个 修改中文的 asp
ASP
,
中文名
点赞
0
相关帖子
我又发个东西吧过年了...中文改名asp页(防改名复制的)
网页改中文名测试成功
完美世界asp注册全功能管理系统
出售配带台ASP网站 有留言板 防恶意刷新...
求MD5网页注册asp~~!1310数据库
discuz各个目录与文件的作用说明
ASP防止挂马攻击和SQL参数注入攻击函数
EB中文支持补丁发布!只需点一下,你的EB就可以用中文名了!
在家欣賞立體影片《立體電影播放器》v1.4.2
石进-《夜的钢琴曲》专辑[FLAC/分轨][RF]
回复
举报
相关推荐
我又发个东西吧过年了...中文改名asp页(防改名复制的)
2009-04-03
网页改中文名测试成功
2009-01-27
完美世界asp注册全功能管理系统
2009-05-24
出售配带台ASP网站 有留言板 防恶意刷新...
2009-06-17
求MD5网页注册asp~~!1310数据库
2009-10-08
discuz各个目录与文件的作用说明
2009-10-24
ASP防止挂马攻击和SQL参数注入攻击函数
2012-10-22
EB中文支持补丁发布!只需点一下,你的EB就可以用中文名了!
2011-06-27
在家欣賞立體影片《立體電影播放器》v1.4.2
2011-03-30
石进-《夜的钢琴曲》专辑[FLAC/分轨][RF]
2011-05-12
6 回复
vvforgs
2008-9-14 22:51:53
回复
举报
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>人物角色名称修改</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript">
function check1()
{
if (form1.username.value==''||form1.rusername.value==''||form1.strid.value==''||form1.psw.value=='')
{
alert('error!');
return false;
}
else
{
if(form1.rusername.value.length>10)
{
alert('太长了!');
return false;
}
else
return true;
}
}
</script>
<%
if request.Form("submit")<>"" then
strid=TRIM(Request.Form("strid"))
psw=TRIM(Request.Form("psw"))
username=TRIM(Request.Form("username"))
rusername=TRIM(Request.Form("rusername"))
if len(rusername)>10 then
Response.write("<script>alert('输入的角色名太长了!');window.history.back();</script>")
Response.End()
end if
'==========
Sql="Select * from Account_char where strAccountID='"& strid &"' and (strcharID1='"& username &"' or strcharID2='"& username &"' or strcharID3='"& username &"')"
set ors=conn.execute(Sql)
if ors.eof then
Response.write("<script>alert('输入的信息不正确!');window.history.back();</script>")
Response.End()
end if
Sql="Select * from TB_USER where strAccountid='"& strid &"' and strpasswd='"& psw &"'"
set ors=conn.execute(Sql)
if ors.eof then
Response.write("<script>alert('输入的密码不正确!');window.history.back();</script>")
Response.End()
end if
'===============
Sql="Select * from USERDATA where struserID='" & username & "'"
set ors=conn.Execute(Sql)
if ors.eof then
Response.write("<script>alert('输入的角色名有误!');window.history.back();</script>")
Response.End()
end if
if ors("knights")<>0 then
Response.write("<script>alert('该角色未退出骑士团!');window.history.back();</script>")
Response.End()
end if
ors.close
set ors=nothing
Sql="Select * from userdata where struserID='"& rusername &"'"
set ors=conn.Execute(Sql)
if not ors.eof then
Response.write("<script>alert('输入的新角色名已经存在!');window.history.back();</script>")
Response.End()
end if
ors.close
set ors=nothing
Sql="Select * from rname where charname='"& username &"'"
set ors=conn.Execute(Sql)
if not ors.eof then
Response.write("<script>alert('一个角色只能修改一次!');window.history.back();</script>")
Response.End()
end if
ors.close
set ors=nothing
Sql="insert into rname (charname) values ('"& rusername &"')"
conn.Execute(Sql)
Sql="update ACCOUNT_CHAR set strCharID1='"& rusername &"' where strCharID1='"& username &"'"
conn.execute(Sql)
Sql="update ACCOUNT_CHAR set strCharID2='"& rusername &"' where strCharID2='"& username &"'"
conn.execute(Sql)
Sql="update ACCOUNT_CHAR set strCharID3='"& rusername &"' where strCharID3='"& username &"'"
conn.execute(Sql)
Sql="update USERDATA set strUserID='"& rusername &"' where strUserID='"& username &"'"
conn.Execute(Sql)
Response.write("<script>alert('角色名修改成功!');</script>")
end if
%>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="150"><img src="Pic/top.jpg" width="700" height="150" /></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><form id="form1" name="form1" method="post" action="" onsubmit="return check1();">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>帐号:</td>
<td><input name="strid" type="text" id="strid" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td>密码:</td>
<td><input name="psw" type="text" id="psw" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td>原角色名称: </td>
<td><input name="username" type="text" id="username" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td>新角色名称:</td>
<td><input name="rusername" type="text" id="rusername" /></td>
</tr>
<tr>
<td> </td>
<td>(不要含有特殊符号,修改前保证人物已经下线,并没有团)</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="提交" /></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center"></div></td>
</tr>
</table>
</body>
</html>
复制代码
评分
1
查看全部评分
CT
评论
举报
laoyou456
2008-9-15 00:04:42
楼主
回复
举报
谢谢啊 好人还是多纳
评论
举报
laoyou456
2008-9-15 00:14:53
楼主
回复
举报
用了上面的代码 还是那样子 问题出在哪了 望高手指点迷津
一输入完修改信息 点击后就出现 一个角色只能修改一次
评论
举报
feike
2008-9-17 10:45:49
回复
举报
服务器地址指向是不是在此定义:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
评论
举报
binwang
2008-9-17 11:07:13
回复
举报
原帖由
feike
于 2008-9-17 02:45 发表
服务器地址指向是不是在此定义:
no
这个是定义这个页面用的是w3c的transitional标准
评论
举报
laoyou456
2008-9-17 12:59:56
楼主
回复
举报
哎~~~!
评论
举报
B
Color
Image
Link
Quote
Code
Smilies
高级模式
游客
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
立即登录
回帖
本版积分规则
回帖后跳转到最后一页
返回
浏览过的版块
信息发布「Info. 」
1299程序专版「1299 files」
发布新主题
laoyou456
作者最近主题
发我正确汉化的3.0 data
发点补丁3.0组队界面,国站新箭塔.
共享2.0一套,求解决零字节方法!
新地图
原来国站没怪问题是数据库问题
这才是精美的2.0界面
求助,怎么设置传送卑上传送到小国?
elmorad_0730.smd地图文件
除了TB_USER建立帐号还有其他方法吗?
免费发昨天的8套补丁
首页
分类
目录
索引
我的