ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 26th, 2000, 05:17 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Login from a Database

<i><b>Originally posted by : Charles (cjanco@mindspring.com)</b></i><br />I need to provide a user name and login for a site and have the info passed to each page with an include file. I found an example and it works perfectly. I just need to change it so the password and username is taken from my Access database. I think all I need to change is this function below:<br /><br />Function ValidateLogin( sId, sPwd ) <br />ValidateLogin = False<br />If sId = "admin" AND sPwd="adminpass" Then<br />ValidateLogin = True<br />End If<br />End Function<br /><br />Thanks in advance for your help!

Reply With Quote
  #2  
Old March 27th, 2000, 10:14 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : steve</b></i><br />all you really have to change is do a select * from tbllogin and validate the recordset. if request("loginid") = rs("loginid") then let them view the page else redirect page to the login page. is there more to the function that you posted?<br /><br /><br />------------<br />Charles at 3/26/2000 2:17:38 PM<br /><br />I need to provide a user name and login for a site and have the info passed to each page with an include file. I found an example and it works perfectly. I just need to change it so the password and username is taken from my Access database. I think all I need to change is this function below:<br /><br />Function ValidateLogin( sId, sPwd ) <br />ValidateLogin = False<br />If sId = "admin" AND sPwd="adminpass" Then<br />ValidateLogin = True<br />End If<br />End Function<br /><br />Thanks in advance for your help!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Login from a Database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT