Download for gain

Transcript
We Ga :
web project
nal report
for gain
the prototype
<%@ LANGUAGE=”VBSCRIPT”%>
<%
username = request(“username”)
password = request(“password”)%>
These lines retrieves the text from the form and put them
into variables.
<!--#include le=”cong-start.asp”--->
The include file opens the connection to the members
database, and checks both member and administrator table.
<%
%>
if username = “admin” then
if password = “admin” then
Response.cookies(“loggedin”)= true
response.cookies(“registered”)= username
response.redirect “../admin/default.asp”
end if
else
end if
If admin is entered as username and password, and it agrees
with the fields in the database, the user is directed to the
administrator pages.
<%checkPass = “select * from members where
username=’”&username&”’”
‘response.write checkPass
set passSet = canvasDB.execute(checkPass)
if passSet.EOF then
main project 2001
56