Posted by Mazin07 on 10/28/69 11:27
Instead, use preg_match to use Perl-style regular expressions. It can check to see if it found a pattern. For emails, use something like: if( preg_match("/\w+@\w+\.\w+",$variable) ) { do_whatever...; } which will check for the format abc@abc.abc
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming