Hello, I am getting a parse error on line 10 and I can't seem to figure out why. Any suggestions? Also, is there anything wrong with my regular expression?
Thanks a ton!
function validPassword($pw){
$pw=$_POST['PassWord'];
if (strlen($pw)<

|| (strlen($pw)> 20) (This is line 10)
return false;
else if (ereg("[A-Z]{1,}", $pw) && (ereg("[0-9]{1,}", $pw)))
return true;
else
return false;