> if  ($co_area != !ereg("([0-9]{3})",$co_area))
> { echo " * Area code must be 3 digital"; }

I don't know anything about ereg and regex, so if there's an error in that
part I won't be able to help with that, but I can tell you that ($something
!= !$something_else) is a double negative, it's like saying "I can't not
program in PHP." You might as well say ($something == $something_else), save
the obfuscation factor.

Since you want to do something when ereg is false, you should say:

if (!ereg(...)) {
  Do a bunch of stuff;
}


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to