Monday, July 9, 2007

JDBC Programming - login

Requirements:
1. input ID, Password

2. compares inputted id with ids from table of user in DATABASE
ex) select id from user;
and check the inputted id
ex)if (inputted id == ids[xx])

3. if inputted id exists,
you have to get a password which is matched inputted id.
ex)select password from user where id='inputted id';

3.1 if inputted password is vaild,
and you just have to print a success message "Login Success".

3.2 if not,
just print a failure message "Your password is wrong~~!!.
And input your password again."

3.3 and if re-inputted password is vaild,
just print "Login Success".

4. if not,
just print a failure message "You have to register".

No comments: