getaway
getaway

Reputation: 8990

checking the password in php?

how can i check if the password is more than 6 letters using php, this is for my registration form. :)) thanks

Upvotes: 2

Views: 135

Answers (3)

Trufa
Trufa

Reputation: 40747

I think you will find this very usefull:

http://www.phpro.org/tutorials/Validating-User-Input.html

Good luck, Please tell me if you need any help with it!

Upvotes: 1

Sabeen Malik
Sabeen Malik

Reputation: 10880

if(strlen(trim($password)) > 6){
  // do something here
}

Upvotes: 2

greg0ire
greg0ire

Reputation: 23265

You can use the strlen() function.

Upvotes: 0

Related Questions