Copy codeThe Code is as follows:/// /// Check whether the entered email address strEmail is valid. If it is invalid, true is returned./// Public bool CheckEmail (string strEmail){Int I, j;String strTmp, strResult;String strWords =
A small function used to check whether the email address is a valid email address.
/*
// Function name: CheckEmailAddr ($ C_mailaddr)
// Usage: determines whether the email address is a valid email address.
The verification of email address validity is a common problem! The general check method is to perform a simple format check on the email address string, such as whether it contains valid characters such. This method can only ensure that the address
The verification of Email address validity is a common problem! The general check method is to perform a simple format check on the Email address string, such as whether it contains valid characters such. This method can only ensure that the address
When you write a page with ASP, if it involves sending a message, you will normally be asked to enter your email address. Wrong email address often brings a lot of unnecessary trouble, use the following function IsValidEmail can determine an email
Using ASP to determine whether an email address is valid
2000-03-23 · Wang June Cpcw
When you write a page with ASP, if it involves sending a message, you will normally be asked to enter your email address. Wrong email address often brings a lot of
PHP code used to verify whether the email address is valid
Sometimes, when entering a form on a website, the user may enter an incorrect email address. This function can verify whether the email address is valid.
Function
Sometimes, when filling out a form on a website, the user may enter the wrong email address, which verifies that the email address is valid.
function Is_validemail ($email)
{
$check = 0;
if (Filter_var ($email,
Recently in refactoring the old project code, found that the check-in parameter occupies a lot of code, before I know this piece of knowledge is limited to using stringutils and other tools to judge multiple if blocks, the code is not a problem, but
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.