sp; $objResponse->addAlert("Please enter your last name."); $bError = true; } if (!eregi("^[a-zA-Z0-9]+[_a-zA-Z0-9-]*(\.[_a-z0-9-]+)*@[a-z??????0-9]+(-[a-z??????0-9]+)*(\.[a-z??????0-9-]+)*(\.[a-z]{2,4})$", $aFormValues[''email''])) { $objResponse->addAlert("Please enter a valid email address."); $bError = true; } if (!$bError) { xajax的FORM例子_网学