| | |
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 |
.htaccess action ajax apache api array auto beginner binary bounce broken cakephp checkbox class cms code cron curl database date display dynamic echo email error errorlog file files folder form format forms function functions google href htaccess html image include insert integration interactive ip java javascript joomla limit link login loop mail malfunctioning masterthesis menu mlm mod_rewrite multiple mysql nodes oop paypal pdf php popup problem query radio ram random recursion reference regex remote return script search server sessions sms soap source space sql syntax system table tutorial unset update upload url validation validator variable video web websitecontactform xml youtube






