On Sat, May 04, 2002 at 02:42:34PM +0200, Andy wrote:
> if (ereg("^[A-Za-z0-9]",$new_passw))
if (!preg_match("/^[a-zA-Z0-9]*$/", $new_passw)) {
echo "invalid";
}
preg-power! :)
--
Trond Arve Nordheim
- "This message is ROT13-encrypted twice for extra security."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

