password check help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ccrevling
Forum Newbie
Posts: 19
Joined: Mon Aug 06, 2007 1:34 pm

password check help

Post by ccrevling »

hello all,
i have a login form that i am making it manditory for everyone to place atleast one number in their password. What is the best way to accomplish this?

I really have no idea what to do for this...
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: password check help

Post by Christopher »

Look at the preg_match() function documentation. You can to check for the set of characters that are numbers "[0-9]".
(#10850)
Post Reply