Page 1 of 1

password check help

Posted: Wed Feb 27, 2008 11:48 am
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...

Re: password check help

Posted: Wed Feb 27, 2008 12:01 pm
by Christopher
Look at the preg_match() function documentation. You can to check for the set of characters that are numbers "[0-9]".