| | |
Email Validation
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
FYI, when you solve your own problem posting the solution is better then deleting the question. That way others can learn from it and we don't have a hole in our forums.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
•
•
Join Date: May 2007
Posts: 6
Reputation:
Solved Threads: 0
I know tomf solved his problem, but here is an example anyway:
<?php
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $_POST['email'])) {
echo 'Your email address is not valid.';
}
?>
I know it is monotonous, but it work great!
<?php
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $_POST['email'])) {
echo 'Your email address is not valid.';
}
?>
I know it is monotonous, but it work great!
29FIVE Designs - Providing Helpdesk Support Software And Website Design
imagine... create... innovate
imagine... create... innovate
![]() |
Similar Threads
- Email Validation Rule with MS ACCESS (MS Access and FileMaker Pro)
- Need Email validation source code (C#) (C#)
- Simple JavavScript needs email validation (JavaScript / DHTML / AJAX)
- HELP : email validation (Shell Scripting)
Other Threads in the PHP Forum
- Previous Thread: XML and str_replace !
- Next Thread: Diff b/w php and cakePHP
| Thread Tools | Search this Thread |
# 5.2.10 ajax apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date display dissertation dynamic echo echo$_get[x]changingitintovariable... email error file files folder form forms function functions google href htaccess html image images include insert integration ip java javascript joomla ldap legislation limit link local login loop mail memberships menu mlm multiple multipletables mysql mysqlquery oop open paypal pdf persist php problem query radio random recursion regex remote rss script search server sessions sms soap sockets source space spam sql syntax system table tutorial update upload url validator variable video web xml youtube






