User Registration

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
CodeGeek
Forum Newbie
Posts: 12
Joined: Wed Sep 30, 2009 3:36 pm
Location: England

User Registration

Post 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!
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: User Registration

Post by jackpf »

Have you looked for/read any tutorials?
CodeGeek
Forum Newbie
Posts: 12
Joined: Wed Sep 30, 2009 3:36 pm
Location: England

Re: User Registration

Post by CodeGeek »

Yes, I generally use w3schools. It's just little bits that sometimes get me, so that's why I posted.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: User Registration

Post 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.
CodeGeek
Forum Newbie
Posts: 12
Joined: Wed Sep 30, 2009 3:36 pm
Location: England

Re: User Registration

Post by CodeGeek »

That is really helpful, thank you!
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: User Registration

Post by jackpf »

No problem.
Post Reply