ASP Connection Access Database login System _ Application Tips

Source: Internet
Author: User
Tags access database

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.