(B"Adam" <[EMAIL PROTECTED]> wrote in message
(B[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
(B> I need a string expression to verify an alpha numeric password. This is
(B> i've come up with , however it does not work:
(B> elseif ( (!ereg ("^[a-zA-Z]+$", $password)) || (!ereg ("^[0-9]+$",
(BHow about this?
(B elseif (!eregi("^[[:alnum:]]+$", $password))
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php