php registration form - limit emails [closed]
- by Daniel
i want to restrict certain emails to my website.
an example would be that i only want people with gmail accounts to register to my website.
{
/* Check if valid email address */
$regex = "^[_+a-z0-9-]+(\.[_+a-z0-9-]+)*"
."@[a-z0-9-]+(\.[a-z0-9-]{1,})*"
."\.([a-z]{2,}){1}$";
if(!eregi($regex,$subemail)){
…