George W. Bush
05-08-2001, 06:49 PM
if(!eregi("^([._a-z0-9-]+[._a-z0-9-]*)@(([a-z0-9-]+\.)*([a-z0-9-]+)(\.[a-z]{2,3})?)$", $Email))
the above code will check for a properly formated email address in an email field (from a form)
I am not too sure what will I have to do to allow only email with the hotmail.com extension
perhaps?
if(!eregi("^([._a-z0-9-]+[._a-z0-9-]*)@(hotmail.com)$", $Email))
I am not too sure...
the above code will check for a properly formated email address in an email field (from a form)
I am not too sure what will I have to do to allow only email with the hotmail.com extension
perhaps?
if(!eregi("^([._a-z0-9-]+[._a-z0-9-]*)@(hotmail.com)$", $Email))
I am not too sure...