View Single Post
  #4 (permalink)  
Old February 17th, 2009, 09:56 PM
zeronexxx zeronexxx is offline
Authorized User
 
Join Date: Dec 2008
Location: London
Posts: 50
Thanks: 1
Thanked 5 Times in 5 Posts
Default

or may be something like


PHP Code:

function isValidEmail(EmailField){
    var 
regex = /[a=zA-Z0-9_\-]+@[a-zA-Z0-9\-.]/;
    if(
regex.match(EmailField.value)){
       return 
"this is valid email";
    }else{
       return 
"this email is invalid";
    }
}


alert(isValidEmail(someEmailField)); 
Reply With Quote