td>
TR>
TABLE>
Form>
enter p>
loginout span> p>
body>
html>
Come back and verify pass.asp
<%
Option expedition
DIM Username, Password
UserName = Request.form ("Username")
Password = Request.form ("password")
'Change The Username and Password Values Below Change The Login
IF (username = "admin") and (password = "admin") THEN
Response.cookies ("loginadmin") = "True"
Response.Redirect ("Login Success .asp") End IF
Response.Redirect ("login.asp")
%>
Success, enter the landing success .asp page
Failure returns login.asp
The following logout page: Loginout.asp
<%
Response.cookies ("Loginadmin") = ""
Response.Redirect ("login.asp")
%>
You can also store the database store, of course, multiple users. It's simple to just.
转载请注明原文地址:https://www.9cbs.com/read-25818.html
|