102 Part II: Developing Intranet (Web server info) Solutions Listing 4-4
102 Part II: Developing Intranet Solutions Listing 4-4 (Continued) } else if (is_numeric($num)) { return 1; } else { return 0; } } function name($name = null) { if (!strlen($name) || is_numeric($name)) { return 0; } else { return 1; } } function email($email = null) { if (strlen($email) < 5 || ! strpos($email, )) { return 0; } else { return 1; } } function currency($amount = null) { return 1; } function month($mm = null) { if ($mm >=1 && $mm <=12) { return 1; } else { return 0; } }
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision web and email hosting services