Some pages you may not want to let unrelated people see, such as admin pages. Through a form, a conversation (session) Change, a query statement and its three lines of code to achieve the password protection of the Web page. Susan
First, create a database table named Tbllogin, then create two fields (field names), one called "UserName", and the other is "
Now we create the query statement to verify that the content entered in the form is consistent with what is in the database.
UserName = Request.Form ("UserName")
Password = Request.Form ("Password")
' Grab the form contents
Set myconn=server.createobject ("ADODB. Connection ")
MyConn.Open "Your connection string here"
SQL = "SELECT * FROM Tbllogin"
Set RS = Myconn.execute (SQL)
If UserName = rs ("Use
This is a webpage password protection code implemented by JS. You need to enter the password in the pop-up box before entering the webpage, but it is not very useful now. Generally, currently, this function is processed in the background. After the user enters the user name and password, it is handed over to the server for processing, and then the information is
Finally, add the following three lines of code to the front of the page you want to protect. Don't add it to the second page of the code.
If your page name is not main.asp, change the corresponding section in the above code to the name of the page you created.
If the v
(Spider fine translation)
Original English
Now we create the query statement to verify that the content entered in the form is consistent with what is in the database.
UserName = Request.Form ("UserName")
Password = Request.Form ("Password")
' Grab the form contents
Set myconn=server.createobject ("ADODB. Connection ")
MyConn.Open "Your connection string here"
SQL = "SELECT * FROM Tbllogin"
Set RS = Myconn.
Method One:In the Local debugging HTML page, if it contains js or flash, ie will often prompt "ie has restricted this page run can access the computer script or ActiveX control ." While IE prevents local scripting from running for security reasons, it's true that, as a program developer, every time a point is allowed, it's very annoying, and it's starting to get
Cause analysis: The main reason is that there are some content in the open Web page, there is a conflict with IE's security settings or with Third-party security software to protect IE, such as such prompts, such as the confirmation of access to the Web page is not a virus o
In many cases, we have to secure some Web pages. A typical example is the security of the foreground browsing page and the Background admin page. This is also one of the most used page security modes on the WEB. I also encountered this security issue in the development of a
When you make a Web page, if you open the preview locally, it appears: "To help protect security, Internet Explorer has restricted this web page from running a scripting Live ActiveX control that can access your computer." Please click here to get the option ...
"In Code
session|web| page In many cases, we have to secure some Web pages. A typical example is the security of the foreground browsing page and the Background admin page. This is also one of the most used page security modes on the
In the process of developing the website sometimes we do not want to let the customer see the source code of the page, even the text content on the page does not want to be copied, let's look at how to protect the page contentPrevent viewing of page source code and copying t
Because the Web page already has an ActiveX control installed, verify that the control is running every time you open the page. That way every time a Web page appears. "To help protect security, Internet Explorer has restricted th
xhtml| Web page
It seems that there is a lot of confusion about the production of XHTML Web pages, and there are some difficulties in solving them, and I am now going to explain the differences between the XHTML Web page and the HTML
cellpaddingAnd
cellspacing, Because these elements often use different values. This is not a perfect solution, but if your webpage has a large number of images and tables, you have no other wise choice, so you have to use them.
The most incomprehensible performance attribute is
textareaTag, which has only
colsAnd
rowsTwo Valid attributes are required in the latest HTML version. Good labels and poor use
To enter your bedroom, you can bend over through
Related Articles: beginners are familiar with HTML to learn about some HTML tags (5). These HTML tags do not necessarily comply with XHTML specifications. You should make a choice in the actual layout, such as the B mark and FONT mark, which do not comply with the XHTML specifications. 1. Basic TAG elements --------------------------------------------------------
In word, we know how to arrange text, but how to implement it on web pages? This is not as easy as in word. However, as long as html elements are used properly, this effect can be achieved. There are several types of winding: Text winding, text winding, etc. I want to talk about these two types. Okay. Start 1. Text wrap
If we use normally, for example:
The Code is as follows:
This is norma
Objective
I am surfing the internet in my home, often have some BBS password too lazy to remember, use IE's automatic password save function, this is convenient, but there is a trouble, once the machine is not, want to reinstall the operating system, these passwords can not be taken out, but also to reapply, good trouble! So I wrote a tool, You can get the password
Dynamic | static | Web
Web page generation of static HTML file has many advantages, such as the creation of HTML Web pages are included in the search engine, not only included in the quick also included in the whole. The front de
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.