May 17
function check_phone($phone)
{
if(!preg_match(”/[^0-9\ ]+$/”,$phone))
{
return TRUE;
}
else
{
return FALSE;
}
}
?>
function check_phone($phone)
{
if(!preg_match(”/[^0-9\ ]+$/”,$phone))
{
return TRUE;
}
else
{
return FALSE;
}
}
?>
function valid_email($email)
{
//check an email address is possibly valid
if(!eregi(”^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$”, $email))
{
return true;
}
else
{
return false;
}
}