you mean something like this?


//checking if the email is valid

if 
(eregi("^[0-9a-z]([-_.]?[0-9a-z])[EMAIL PROTECTED]([-.]?[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
> [EMAIL PROTECTED]
> 
> +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/
> [EMAIL PROTECTED]
> 
> Philip's Domain // Internet Project.
> http://www.philipsdomain.com/
> [EMAIL PROTECTED]
> 
> Vital Kiwi / NEWMAN.NET.NZ.
> http://www.newman.net.nz/
> [EMAIL PROTECTED] 
> 
> 
> 

-- 
++++++++++++++++++++++++++++++++
David Elías Sánchez Vásquez
Bachiller en Educación PUCP
[EMAIL PROTECTED]
telf. (51)-1-5255601
++++++++++++++++++++++++++++++++


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to