Re: Checking for a Valid Email String.

From: Date: Wed, 12 Mar 2003 01:19:36 +0000
Subject: Re: Checking for a Valid Email String.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139202@lists.php.net to get a copy of this message
you mean something like this? //checking if the email is valid if (eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$", $email, $check)) { if ( !getmxrr(substr(strstr($check[0], '@'), 1), $validate_email_temp) ) $mensaje="server not valid"; // checking DNS if(!checkdnsrr(substr(strstr($check[0], '@'), 1),"ANY")) $mensaje="server not valid"; } David. On Wed, 12 Mar 2003, Philip J. Newman wrote: > Required: Help for checking for a valid email string. > > ------ > Philip J. Newman. > Head Developer > info@philipnz.com > > +64 (9) 576 9491 > +64 021-048-3999 > > ------ > Friends are like stars > You can't allways see them, > but they are always there. > > ------ > Websites: > > PhilipNZ.com - Design. > http://www.philipnz.com/ > info@philipnz.com > > Philip's Domain // Internet Project. > http://www.philipsdomain.com/ > newmanpj@philipnz.com > > Vital Kiwi / NEWMAN.NET.NZ. > http://www.newman.net.nz/ > philip@newman.net.nz > > > -- ++++++++++++++++++++++++++++++++ David Elías Sánchez Vásquez Bachiller en Educación PUCP sanchez.de@pucp.edu.pe telf. (51)-1-5255601 ++++++++++++++++++++++++++++++++

« previous php.general (#139202) next »