| | |
Setting up user name and password
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
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.
<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
***********
Get all the SEO news and tips at SEO Scoop
![]() |
Similar Threads
- User name and password for DirectoryEntry (C#)
- domain user name password (Windows Vista and Windows 7)
- OS10.3: User password not accepted at start-up (OS X)
- Lost Windows XP user password (Windows NT / 2000 / XP)
- need help with user and password (Visual Basic 4 / 5 / 6)
- Setting user levels in MS ex-change server 2003 (Windows Software)
- Lost XP Pro Admin Password (Windows NT / 2000 / XP)
Other Threads in the ColdFusion Forum
- Previous Thread: CF Job market
- Next Thread: Registration form help
| Thread Tools | Search this Thread |





