Page 1 of 1

User Registration

Posted: Wed Sep 30, 2009 3:41 pm
by CodeGeek
Hey,

I am fairly new to PHP and SQL, at the moment I am attempting to make an online text based MMO. I have a guestbook that functions basicly and am currently trying to make a registration form so the rest of the team and I can design the game.

I am having troubles with the following things:

- Check a user entered password against their input into the confirm password field.

- Checking to see wheter the user entered password already exists

- Making it so on myPHPadmin, I can't see user's passwords

I am 14, but I will understand feedback. Help will be apprieciated!

Re: User Registration

Posted: Wed Sep 30, 2009 4:18 pm
by jackpf
Have you looked for/read any tutorials?

Re: User Registration

Posted: Wed Sep 30, 2009 4:19 pm
by CodeGeek
Yes, I generally use w3schools. It's just little bits that sometimes get me, so that's why I posted.

Re: User Registration

Posted: Wed Sep 30, 2009 4:46 pm
by jackpf
Right...well.

1. Compare them with the == operator.
2. Run a query to check. If more than 0 rows are returned, then it already exists.
3. Generally passwords are hashed.

Re: User Registration

Posted: Wed Sep 30, 2009 4:47 pm
by CodeGeek
That is really helpful, thank you!

Re: User Registration

Posted: Wed Sep 30, 2009 5:19 pm
by jackpf
No problem.