| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 485 人关注过本帖
标题:大 侠 救 命! 急!
取消只看楼主 加入收藏
xuesheng
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2005-10-17
收藏
 问题点数:0 回复次数:0 
大 侠 救 命! 急!

代码如下: <% if request.form("yongh")<>"" and request.form("mim")<>"" then yongh=request.form("yongh") mim=request.form("mim") set cn=server.createobject("adodb.connection") cn.open"driver={sql server};server=D4;uid=sa;pwd=;database=fzx" set rs=server.createobject("adodb.recordset") sql="select * from yongh where name='"&yongh&"'and password='"&mim&"'" rs.open sql,cn,3,1 if rs.recordcunt=0 then h_error=1 else session("www_id")=rs("name") session("www_pwd")=rs("password") response.write("欢迎你登录!") end if end if cn.close %> <% if h_error=1 then <script language ="javascript"> alert("请输入的用户/密码错误,请重新输入!"); history.back(); </script> end if %> <script language ="javascript"> function mycheck() { if (form1.yongh.value=="") {alert("请输入您的用户名!");form1.yongh.focus;return;} if(form1.mim.value=="") {alert("请输入您的密码!");form1.mim.focus;return;} form1.submit();} </script>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>登录界面</title> </head> <body> <form name ="form1" action ="nihao.asp" method = "post"> //这句话什么意思不太清楚 用户 <input name = "yongh" type = "text" size = 6 maxlength = 20 > 密码 <input name ="mim" type ="password" size = 6 maxlength = 20 > <input name = "dengl" type = "button" value = "登录" onclick="mycheck()"> <A href='zhuce.asp' style='text-decoration: none;'>注册</A> </body> </html> 运行出现右边错误:HTTP 500 - 内部服务器错误 Internet Explorer 无法显示出运行的结果(界面) 请各位高手帮忙解决!

搜索更多相关主题的帖子: password database server where 
2005-10-19 12:09
快速回复:大 侠 救 命! 急!
数据加载中...
 
   



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

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