| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | 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
__________________ The mass purge has begun. |
| |
| | #2 (permalink) |
| Domains my Dominion | 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 ;-)
__________________ Buy now - MassDeveloper.com $500 |
| |
| | #5 (permalink) | |
| NPQ's PA, Slave, and On Call Coder Technical Services | Quote:
PHP Code: ![]() Instead use: PHP Code:
__________________ | |
| |
| | #6 (permalink) |
| Senior Member | I personally use :- PHP Code:
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
| | #8 (permalink) |
| NamePros Member | From PHP.net, if you like overkill: PHP Code: |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |