954,136 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Setting up user name and password

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!!!

cfnut
Newbie Poster
8 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

Something like this should do it:


SELECT *
FROM Users
WHERE UserName='#username#'
AND Pwd = '#pwd#'

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

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!!!

dazzlindonna
Light Poster
29 posts since Jun 2004
Reputation Points: 10
Solved Threads: 3
 

Thanks, worked good.

cfnut
Newbie Poster
8 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You