Home | Advertising Info8 USERS CURRENTLY ONLINE   
   Site Search Contact Us Thursday, September 18, 2014  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Re: Protection
From: Harlan
Date: 1/20/1999 2:46:43 PM
IP: 206.222.20.2



 

Sure, connect to your database threw odbc and
check that the information they put in the
form matches the database.. Here Ill paste
a function I use often for this.

private sub try_login()
DBOpen() sub function included in db.inc header, creates database connection.
create varaibles for easy access to form input
userid = trim(ucase(request.form("userid")))
password = trim(ucase(request.form("pwd")))
create the sql statement
sSQL = "SELECT * from users where userID=" & userID & " and password=" & password & ""
set rsLogin = db.execute(sSQL)
check there username and password
If rsLogin.EOF and rsLogin.BOF then
session("passed") = False
Else
Do While Not rsLogin.EOF
if ucase(rsLogin("userid")) = userid and ucase(rsLogin("password")) = password then
session("passed") = True
else
session("passed") = False
end if
rsLogin.movenext
loop
End if
if not session("passed") then
incorrect login or domain
session("count") = session("count") + 1
if session("count") >= 3 then
response.write "Failed 3 login attempts"
else
response.write "Invalid UserID or Password<br> Please try again."
call draw_form()
end if
end if
end sub

Previous Message


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com