请问怎样验证在注册时所使用的注册名称已经被使用?

飞扬残月 2003-10-26 10:27:13
请问怎样验证在注册时所使用的注册名称已经被使用?
...全文
58 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuzxit 2003-10-26
  • 打赏
  • 举报
回复
name=request("name")
...
sql="select count(*) from 注册名单 where 注册名='"&name&"'"

if conn.exeucte(sql)(0) > 0 then
response.write "注册名已经用过"
else
...
end if
pzlk 2003-10-26
  • 打赏
  • 举报
回复
name=request("name")
...
sql="select * from 注册名单 where 注册名="&name
rs.open sql,conn,1,1
if not (rs.eof and rs.bof) then
response.write "注册名已经用过"
else
...
end if

28,404

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧