想做一个简单数据库系统,带界面,如何下手?具体步骤?

 我来答
情话1cc
2013-12-22 · 超过49用户采纳过TA的回答
知道答主
回答量:111
采纳率:0%
帮助的人:48.3万
展开全部
第一步,你需要搭建一个开发环境,我以b/s中的asp为例, web server:netbox,使用方便 语言:asp,入手容易 数据库:access,界面操作,无需密码,操作简单。第二步,新建一个用户表,username char(20)password char(20)添加数据,admin mypassword第三步,新建登录界面,文件名 login.asp<div> <form name="login" method="post" action="loginaction.asp" target="_top"> <table align="center" style="margin-top:30"><tr><td>请输入用户名</td> <td><input type="text" name="userName" id="userName2" size="10" /></td></tr><tr><td>请输入密码 </td> <td><input type="password" name="userPwd" id="userPwd2" size="10" /></td></tr><tr><td colspan="2" align="center"><input type="button" id="login2" value="登录" onClick="login2Check();" /></td></tr></table></form></div>新建loginaction.asp<!--#include file="conn.asp"--><%dim sql,userName,userPwd userName=trim(request("userName")) userPwd=trim(request("userPwd")) if userName="maintain" then sql="select userPwd from user_info where userId=2" rs.Open sql,cn,1,1 asd=trim(rs("userPwd")) if userPwd=asd then session("name")=userName response.Redirect("maintainance_personnel.asp")else%><script language="javascript"> alert("密码错误!") window.location="index.asp";</script><%end ifrs.closeelse%> <script language="javascript"> alert("用户名错误!") window.location="index.asp";</script><%end if%>新建连接数据库文件conn.asp<% set cn=Server.CreateObject("ADODB.Connection")
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式