|
|
|
|
|
| | |
|
Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: how use ASP for check password from server |
From: |
shamRex |
Date: |
3/20/2000 5:09:11 AM |
IP: |
161.142.78.83 |
hi,
just a little but may be useful.
In order to check the password, you need a response asp page which will be executed when button login pressed.
The step are:
1. get the username and password value
password=request.form("user_pwd")
username=request.form("user_name")
2. open database (using dsnless database)
Set conntemp = Server.CreateObject("ADODB.Connection")
conntemp.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("Name of your database here"))
3. execute some sql
mySQL="select * from Login"
set rs=conntemp.execute(mySQL)
4. get recordset (rs) from database (by looping until rs.eof):
username_db=rs("UserName")
user_pwd_db=rs("Passwd")
then compare them with the value from user login.
check another sources for better understanding.
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|