dave_15_uk
New member
I need a function or a few lines of code that will check whether a password that has been entered contains 2 numbers and 2 letters and checks that they DONT contain characters like < > ? & $
I've already looked at that and cant find what i want
not quite sure
i've had to protect against scripts being inserted in other areas of the site, i guess its just second nature now. Any idea how i'd do it without excluding those characters?
i've tried strpos() and stristr() but they would fail the checks if somebody used aa11 as a password (im not suggesting they should)
I've already looked at that and cant find what i want
not quite sure

i've tried strpos() and stristr() but they would fail the checks if somebody used aa11 as a password (im not suggesting they should)