$match = ‘/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/’;
preg_match($match, $email);
|
|||||
|
$match = ‘/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/’; preg_match($match, $email); function ValidIP($ip){ if (preg_match(‘/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/’, $ip)){ return false; A function to check if an email address is valid function valid_email($email) |
|||||
|
Copyright © 2010 Getphp : PHP and MySQL resources - All Rights Reserved Powered by Yahoo! Answers SEO Powered by Platinum SEO from Techblissonline |
|||||