找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 79|回复: 4

[求助]这样可以么??

[复制链接]
发表于 2010-1-14 06:17:02 | 显示全部楼层 |阅读模式 IP:江苏扬州
我不知道我这样对不对,就是在注册的时候加了一个检查用户是否注册的按钮,可是我这样写提示我错误:
登陆用户名:

Microsoft JET Database Engine 错误 '80040e14'

FROM 子句语法错误。

/zhuce.asp,行 34

第34行为红字行........

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用户注册</title>
<style type="text/css">
<!--
body {
margin-top: 0px;
}
.style1 {font-family: "宋体"}
.style2 {font-size: 10pt}
.style4 {font-family: "宋体"; font-size: 10pt; }
-->
</style></head>

<body>
<div align="center">
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
</tr>
</table>
</div>
<%
sub aaa()
db="/data/jituan.mdb"
user=request("textuser")
Set conn = Server.CreateObject("ADODB.Connection")
conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
sql="select * from user where user_id='"&user&"'"
set rs=Server.CreateObject("ADODB.RecordSet")
rs.open sql,conn,1,1
if not rs.eof then
%>
<script language=javascript>
alert("该用户可以进行注册!")
</script>
<%else%>
<script language=javascript>
alert("该用户名已被占用!")
</script>
<%end if
rs.close
conn.close
set conn=nothing
end sub%>
<form name="form1" method="post" action="">
<div align="center">
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="38%"><div align="right" class="style1 style2">登陆用户名:</div></td>
<td width="62%"><div align="left" class="style4">
<input name="textuser" type="text" id="textuser" size="12" maxlength="12">
<input type="button" name="Submit3" value="检测用户名" onClick="<%call aaa()%>">
</div></td>
</tr>
<tr>
<td><div align="right" class="style4">用户密码:</div></td>
<td><div align="left" class="style4">
<input name="textfield2" type="text" size="12" maxlength="12">
</div></td>
</tr>
<tr>
<td><div align="right" class="style4">密码确认:</div></td>
<td><div align="left" class="style4">
<input name="textfield3" type="text" size="12" maxlength="12">
</div></td>
</tr>
<tr>
<td><div align="right" class="style4">用户姓名:</div></td>
<td><div align="left" class="style4">
<input name="textfield4" type="text" size="12" maxlength="12">
</div></td>
</tr>
<tr>
<td><div align="right" class="style4">所属区域:</div></td>
<td><div align="left" class="style4">
<input name="textfield5" type="text" size="12" maxlength="12">
</div></td>
</tr>
<tr>
<td><div align="right" class="style4">所属部门:</div></td>
<td><div align="left" class="style4">
<input name="textfield6" type="text" size="12" maxlength="12">
</div></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="34%"><div align="right">
<input type="submit" name="Submit" value="提交">
</div></td>
<td width="17%">&nbsp;</td>
<td width="49%"><div align="left">
<input type="reset" name="Submit2" value="重置">
</div></td>
</tr>
</table></td>
</tr>
</table>
</div>
</form>
</body>
</html>
可以帮我看看问题出在那里了么....我真是太笨了...昨天找了一下午都没找出来...
还有就是谁能告诉我一般做用户注册检查界面都是用什么方法作阿??
我这种方法对么????谢谢大家.......................
等有空请大家吃饭啦......拜托咯..............
发表于 2010-2-8 06:05:09 | 显示全部楼层 IP:香港
我仿佛看到了你鹰视狼顾,龙行虎步的伟岸英姿
回复

使用道具 举报

发表于 2010-2-25 17:05:05 | 显示全部楼层 IP:日本
楼主,你写得实在是太好了。我惟一能做的,就只有把这个帖子顶上去这件事了。
回复

使用道具 举报

发表于 2010-3-23 02:05:06 | 显示全部楼层 IP:陕西西安
声明一下:本人看贴和回贴的规则,好贴必看,精华贴必回。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 17:35 , Processed in 0.369576 second(s), 15 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表