I. BASIC OBJECTIVES
First, there is a User Information table test in the Access database Database.mdb:
Write a login system, if the user entered the user name in the table does not, then the prompt "No this person", if the input password error, then prompt "Password error"
If the user entered the username and password are correct, then jump to the landing success page
Landing Success page In general, it is not allowed to access through the input URL
Ii. Basic Ideas
Use the ASP's session object to ensure that the user name and password are passed.
The pop-up section uses JavaScript scripting language and uses ASP to query the user Information table.
The basic structure of the site is as follows:
Third, the production process
the entire site using UTF-8 code to ensure that no garbled, so each page in the page must have <meta http-equiv= "Content-type content=" text/html; Charset=utf-8 "/>, if the use of the high version of DW is automatically added, low version please change gb2312 to Utf-8, Notepad help yourself.
1, landing page login.html is just a static page of a form. The key is to use the Post method to pass the message, the action is to Login.asp
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
2, Login.asp Landing Verification page is the most core page of the system
<% @LANGUAGE = "VBSCRIPT" codepage= "65001"%> <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
3, success.asp
There is nothing to say, the key is to see if he has a normal landing sign, login content is OK, no will it pop-up landing page
<% @LANGUAGE = "VBSCRIPT" codepage= "65001"%>
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
4, exit.asp exit processing page
<% @LANGUAGE = "VBSCRIPT" codepage= "65001"%>
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.