Click here to Skip to main content
15,914,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I created login page and registration page also.Now i want to take username and password for login page from registration page.
How to check that values from database?
any body reply me.
Posted

If you are inserting values from registration page to database.
then at the time of login verify these values if found then login.
How it can be done see

Simple login page

SQL
SELECT * FROM registrationtab WHERE username=@username AND password=@password

this query using stored procedure.You can simply use this in your code without stored proc.
 
Share this answer
 
write a query to select username and password from your tablename. If the username and password matches and returns a rowset then the user is valid otherwise invalid user.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900