| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Jun 2004
Posts: 587
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ereg / POSIX question Trying to do a quick down, dirty, and crude validation of an email address. I have: PHP Code: If I remove anything after the period (in the domain) like this: PHP Code: PHP Code: Suggestions? -Bob
__________________ Can't wait to be out of this forsaken business. Getting close! :) |
| |
| | #2 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,552
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Works fine with me. What E-mail address are you using for testing ? Are you sure the E-mail is not altered in the POST request ? Also if you want to get extreme you may want to look into raw RFC822 validation: http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html but I think it would be overkill ;-)
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| |
| | #5 (permalink) | ||||
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
PHP Code: ![]() Instead use: PHP Code: | ||||
| |
| | #6 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I personally use :- ????: NamePros.com http://www.namepros.com/showthread.php?t=195993 PHP Code:
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
| | THREAD STARTER #7 (permalink) | ||||
| NamePros Regular Join Date: Jun 2004
Posts: 587
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ????: NamePros.com http://www.namepros.com/showthread.php?t=195993 -Bob
__________________ Can't wait to be out of this forsaken business. Getting close! :) | ||||
| |
| | #8 (permalink) |
| NamePros Member Join Date: Apr 2005
Posts: 117
![]() ![]() | From PHP.net, if you like overkill: PHP Code: |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |