Hi there,

I am trying to validate a password. Only characters in the alphabet and
numbers should be allowed.

Somehow my statement does not work at all :-(

if (ereg("^[A-Za-z0-9]",$new_passw))
    echo 'invalid';

Can anybody help on that?

Thanx in advance,

Andy



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to