谁能告诉我动太网页到底是个什么东西 能发一个给我最好 毕业设计!!!
- 提问者网友:niaiwoma
- 2021-05-02 22:16
- 五星知识达人网友:像个废品
- 2021-05-02 22:31
小妹妹,动态的网页,就是用 ASP PHP JSP .NET这
例如下面,这段就是用ASP编写的,如果你想学动态语言的话,建议你学PHP吧,现在这个很流行
<%
call aspsql()
call buyok_check_path()
Userid=trim(request.form("userid"))
Password=trim(request.form("password"))
if request.form("Login")<>"ok" then response.redirect "main.asp"
if Userid = "" or Password ="" then response.redirect "error.asp?error=004"
if Userid = request.cookies("buyok")("userid") then response.redirect "error.asp?error=005"
sql = "select * from buser where userid='"&Userid&"'"
Set rs=Server.CreateObject("ADODB.RecordSet")
rs.open sql,conn,1,3
if (rs.bof and rs.eof) then
response.redirect "error.asp?error=003"
response.end
end if
if rs("Status")<>"正常" and rs("Status")<>"1" then
response.write "<script language='javascript'>"
response.write "alert('出错了,您的会员号已被锁定或者未通过审核。');"
response.write "location.href='alogin.asp';"
response.write "</script>"
response.end
end if
if rs("UserPassword")<> md5(Password) then
session("login_error")=session("login_error")+1
response.write "<script language='javascript'>"
response.write "alert('您输入的密码不正确,请检查后重新输入。\n\n出错 "&session("login_error")&" 次');"
response.write "location.href='alogin.asp';"
response.write "</script>"
response.end
else
rs("lastlogin")=now()
rs("IP")=Request.serverVariables("REMOTE_ADDR")
rs("TotalLogin")=rs("TotalLogin")+1
rs.update
response.cookies("buyok")("userid")=lcase(userid)
if request.form("cook")<>"0" then response.cookies("buyok").expires=now+cook
session("userid")=lcase(userid)
response.write "<meta http-equiv='refresh' content='0;URL=user_center.asp'>"
end if
rs.close
set rs=nothing
%>
- 1楼网友:十年萤火照君眠
- 2021-05-02 23:26
- 2楼网友:冷風如刀
- 2021-05-02 23:00
动态网页会涉及到数据库的~~ASP PHP JSP .net的都是动态的!~~!!
网上有很多开源程序~~可以下载
出 各类网站源码
- 3楼网友:蓝房子
- 2021-05-02 22:39
动态网页就是能在后台更新数据
-----------
动态网页有ASP、PHP、.net、C#及Java等多种,你可以去网上搜索一些源代码,有很多