Free web development scripts for the webmasterDevelopment Scripts

 Site Navigation
 o Development Scripts
 o Text Only Edition
 o PHP.net News
 o Tutorials
 o Register an account
 o New entries this week
 o Affiliates/Links
 o Contact Us
 o About us
 o Advanced Search

 Browse Path
 o 7 users online
 o Most users online: 67
 o Home
  o PHP
   o Email
    o Script

 Member Login
User Name
Password

 Standards
Valid XHTML 1.0!
Valid 
CSS!

 Recommended Links
 o PHP Freaks
 o Designer Baby Clothes
 o Advertise Here Make Money
 o OxyScripts
 o Free Wedding Websites
 o Wedding Vendor Directory
 o devnet
 o designplace
 o Open Source Design

Serverside E-Mail Address Validation (Rated 4.5)

Description:

This script will validate an email address to be valid or not. How you deal with either case is entirely up to you!

Code starts here


<?PHP
// Get this email from anywhere, forms etc
$email="someone@somewhere.com";

$regEx = "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$" ;
if (
eregi($regEx, $email))
{
// Email is valid
} else {
// Email Isn't Valid
}
?>


Submitted by Devscripts on 13-02-2003 23:41


Rate This Script

User Contributed Comments

Registered Members login
© Copyright 2003 - Devscripts.net