How would I go about doing the DNS look up part?
"Markus Lervik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 false > email address. You could do a DNS-lookup to see if the domain-part of > the address really exists, too. > > > Cheers, > Markus > > -- > Markus Lervik > Linux-administrator with a kungfoo grip > Vaasa City Library - Regional Library > [EMAIL PROTECTED] > +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