RSS Forums RSS
Please support our ColdFusion advertiser: Programming Forums
Views: 5099 | Replies: 2 | Solved
Reply
Join Date: Jul 2004
Posts: 8
Reputation: cfnut is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cfnut cfnut is offline Offline
Newbie Poster

Setting up user name and password

  #1  
Jul 21st, 2004
I have a page where the user can enter his username and password. Does anyone have any examples on how to check the database for to make sure the user matches the username and password.

Thanks!!!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2004
Location: Louisiana, US
Posts: 24
Reputation: dazzlindonna is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 3
dazzlindonna's Avatar
dazzlindonna dazzlindonna is offline Offline
Newbie Poster

Re: Setting up user name and password

  #2  
Jul 21st, 2004
Something like this should do it:

<CFQUERY name="login" datasource="#dsn#">
SELECT *
FROM Users
WHERE UserName='#username#'
AND Pwd = '#pwd#'
</CFQUERY>

Of course your datasource, table name, fieldnames, and variables have to match your situation.


Originally Posted by cfnut
I have a page where the user can enter his username and password. Does anyone have any examples on how to check the database for to make sure the user matches the username and password.

Thanks!!!
I need to check my ColdFusion Calendar because I think Christmas is coming soon! ;)
***********
Get all the SEO news and tips at SEO Scoop
Reply With Quote  
Join Date: Jul 2004
Posts: 8
Reputation: cfnut is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cfnut cfnut is offline Offline
Newbie Poster

Resolved

  #3  
Jul 22nd, 2004
Thanks, worked good.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:46 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC