/ Published in: PHP
this function was provided to me by my partner in crime......thanks superchicken
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function valid_email($str) { $match = "/^([a-zA-Z0-9]([a-zA-Z0-9_-]*\.?[a-zA-Z0-9])*)(\+[a-zA-Z0-9]+)?@([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])*\.)*([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9]+)*)\.[a-zA-Z]{2,6}$/"; return TRUE; }else{ return FALSE; } }