一思路
登陸—form-frmlogin
start up position=2
賬號—lable textbox—txtuserid
密碼—lable textbox—txtpassword
登陸,取消—commangbutton
cmdlogin-default:ture-enter
cmd cancel-cancel:ture-esc
字型:大小:小一
所有控制項的tablnde*屬性,0,1,2,3
txt user id
txt password-1
comd login-2
cmd cancel-3
二程式option explicit
const maxlogintimes as integer = 3
private sub comdlogin_click()
static logintimes as integer
logintimes = logintimes + 1
dim cn as connection
dim rs as recordset
dim strsql as string
set cn = new connection
set rs = new recordset
cn.connectionstring = "provider=microsoft.jet.oledb.3.51;date.soure= c:\user\if\desktop\text example.mdb"
cn.open
rs.open (strsql)
if rs.
一思路登陸—form-frmlogin
start up position=2
賬號—lable textbox—txtuserid
密碼—lable textbox—txtpassword
登陸,取消—commangbutton
cmdlogin-default:ture-enter
cmd cancel-cancel:ture-esc
字型:大小:小一
所有控制項的tablnde*屬性,0,1,2,3
txt user id
txt password-1
comd login-2
cmd cancel-3
二程式option explicit
const maxlogintimes as integer = 3
private sub comdlogin_click()
static logintimes as integer
logintimes = logintimes + 1
dim cn as connection
dim rs as recordset
dim strsql as string
set cn = new connection
set rs = new recordset
cn.connectionstring = "provider=microsoft.jet.oledb.3.51;date.soure= c:\user\if\desktop\text example.mdb"
cn.open
rs.open (strsql)
if rs.eof = ture then
msgbox txtuserid.text&"不存在"
me.txt userid.setfocus
me.txt userid.setstart = 0
me.txtuserid.sellength = len(me.txtuserid.text)
else
if rs.field("userpassword").value=me.txtpassword.text.then
msg box: 登陸成功
unload me
frm new show
else
msgbox "密碼錯誤"
end if
end if
ppp:
else
msgbox "您的輸入次數超過允許的最大錯誤次數"
end sub
三實驗結論
在connection聯通的條件下,可以和資料表進行資料的雙向運輸recordset
從而我們學習了一種新的語言(sql)
web大作業(2)登陸頁面的實現
首先還是複製乙個登陸頁面 doctype html utf 8 html登入模板 title 讓頁面所有元素的padding和margin都設定為0 體設定為微軟雅黑 body headtop 整個登入框的css,並使用絕對定位居中 login body 前面分析過的h1標籤的css,text sh...
html日曆頁面節假日 節日登陸頁面的SEO策略
如何為假日 計畫您的seo策略 常青登陸頁面 所有假期的單頁 建立單個登入頁面,為每個假期更新內容是避免重複內容出現問題的好方法。隨著每個新的假日季節臨近,更改關鍵字,橫幅,元資料和副本,以反映您的公司為每個特定假期營銷的內容。所有假期的這種單一url對於那些不太喜歡與節假日相關的季節性的企業尤其有...
PHP MYSQL登陸頁面4
登陸頁面 echo 問題1 為什麼要denglu.php傳到這裡,因為php 獲取的也在這個頁面上啊,問題2 為什麼密碼只乙個,呵呵,這個登陸好嗎,你的使用者名稱 密碼已經儲存好了,登陸合適就可以了呀 為什麼這個頁面也要用session技術,因為使用者登入後沒退出下次登陸到這個頁面也是登陸後頁面哈,...