Free Advertising Forums | Free Advertising Board | Post Free Ads Forum | Free Advertising Forums Directory | Best Free Advertising Methods | Advertising Forums

Free Advertising Forums | Free Advertising Board | Post Free Ads Forum | Free Advertising Forums Directory | Best Free Advertising Methods | Advertising Forums (http://www.freeadvertisingzone.com/index.php)
-   Post Your Products & Services Here (http://www.freeadvertisingzone.com/forumdisplay.php?f=75)
-   -   Windows 7 Professional Validate an E-Mail Address (http://www.freeadvertisingzone.com/showthread.php?t=1084865)

mornning8303 04-20-2011 10:19 AM

Windows 7 Professional Validate an E-Mail Address
 
From Concern #158
June 2007

The net Engineering Job Force (IETF) document, RFC 3696,Windows 7 Professional, “Application
Methods for Checking and Transformation of Names” by John
Klensin,
presents several valid e-mail addresses which might be rejected by several PHP
validation routines. The addresses:
Abc\@def@example.com,Microsoft Office Enterprise 2007,
customer/department=shipping@example.com and
!def,Windows 7 Serial!xyz%abc@example.com
are all valid. One of the much more well-liked normal expressions found inside the
literature rejects all of them:
"^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)
↪*(\.[a-z]2,3)$"
This typical expression allows only the underscore (_) and hyphen
(-) characters, numbers and lowercase alphabetic characters. Even
assuming a preprocessing step that converts uppercase alphabetic
characters to lowercase, the expression rejects addresses with
valid characters, such as the slash (/), equal sign (=), exclamation
point (!) and percent (%). The expression also requires that the
highest-level domain component has only two or three characters,Microsoft Office 2007 Key, thus
rejecting legitimate domains, such as .museum.
Another favorite typical expression solution is the following:
"^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$"
This typical expression rejects all the valid examples from the preceding paragraph.
It does have the grace to allow uppercase alphabetic characters, and
it doesn't make the error of assuming a high-level domain name has only
two or three characters. It allows invalid domain names, such as
illustration..com.
Listing 1 shows an illustration from PHP Dev Shed (www.devshed.com/c/a/PHP/Email-Address-Verification-with-PHP/2).
The code contains (at least) three errors. First, it fails to recognize
many legitimate e-mail address characters, such as percent (%). Second, it
splits the e-mail address into user name and domain parts at the at sign
(@). E-mail addresses that contain a quoted at sign, such as
Abc\@def@example.com will break this code. Third,Windows 7 Download, it fails to check
for host address DNS records. Hosts with a type A DNS entry will accept
e-mail and may not necessarily publish a type MX entry. I'm not
picking on the author at PHP Dev Shed. Far more than 100 reviewers gave
this a four-out-of-five-star rating.


All times are GMT. The time now is 07:48 PM.

Powered by vBulletin Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Free Advertising Forums | Free Advertising Message Boards | Post Free Ads Forum