[PHP] String Expression for aplpahnumeric password

2002-11-01 Thread Adam
I need a string expression to verify an alpha numeric password. This is what i've come up with , however it does not work: elseif ( (!ereg (^[a-zA-Z]+$, $password)) || (!ereg (^[0-9]+$, $password))) can anybody help? Thanks in advance ADAM -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] String Expression for aplpahnumeric password

2002-11-01 Thread @ Edwin
Hello, "Adam" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I need a string expression to verify an alpha numeric password. This is what i've come up with , however it does not work: elseif ( (!ereg ("^[a-zA-Z]+$", $password)) ||