On Fri, 2002-03-08 at 04:10, CrossWalkCentral wrote:
> How would I go about doing the DNS look up part?
with checkdnsrr() I'd assume:
"Searches DNS for records of type type corresponding to host. Returns
TRUE if any records are found; returns FALSE if no records were found or
if an error occurred."
the default type is MX.
> > On Tuesday 12 February 2002 06:19, CrossWalkCentral wrote:
> > > I am working on a form that I have in php and am looking for some advise
> > > on form validation or specifically email address validation so i can
> > > insure that some one has put in a properly formatted email address
> > Well. something like
> > if (!eregi("^[A-Za-z0-9\_-]+@[A-Za-z0-9\_-]+.[A-Za-z0-9\_-]+.*", $email))
> > echo "$email doesn't seem to be a valid e-mail address!";
> > }
> > would do the job. Of course, that doesn't stop people from entering a
> > email address. You could do a DNS-lookup to see if the domain-part of
> > the address really exists, too.
Linux-administrator with a kungfoo grip
Vaasa City Library - Regional Library
+358-6-325 3589 / +358-40-832 6709
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php