// check phone for validity
if (($PHONE_NO) || ($phone_no)) {
$phone_no = trim($phone_no);
if ($PHONE_NO)
$phone_no = trim($PHONE_NO);
if (!ereg("((^[0-9]{3}-[0-9]{3}-[0-9]{4}$)|(^[0-9]{3}-[0-9]{7}$)|(^([0-9]{3})[0-9]{3}-[0-9]{4}$)|(^([0-9]{3}) [0-9]{3}-[0-9]{4}$)|(^([0-9]{3})[0-9]{7}$)|(^[0-9]{10}$))", $phone_no)) {
print_error("your <b>phone number</b> is invalid");
}
}
I'm currently using the code above, but the following formats for phone numbers are not working [it still submits in the form]

...
2134121232
(213)412-1232
(213) 412-1232
(213)4121232
I have no clue why ... and was wondering if anyone can see something I don't?
THanks for any help @ all! *stumped!*
