here's an idea, i haven't tried it though: $email = '[EMAIL PROTECTED]'; $domain = substr(strstr($email, '@'),1); $ip = gethostbyname($domain); echo (($ip == $domain) ? "Domain does not exist" : "Bingo!");
Aram Yegenian --- Ala'a Ibrahim <[EMAIL PROTECTED]> wrote: > Hi all, > I have a little problem, I have a registration page > (PHP working), the > user enters his email, I just want to check if the > email exists before > continuing, or at least check if the email domain > exists just to be > sure the user payed attention to the field not > entered something like > '[EMAIL PROTECTED]' for example. > > I heard I can do that using DNS, but i had no idea > how to do it. > Any Ideas? > > -- > Ala'a A. Ibrahim > http://360.yahoo.com/bai_83 > > _______________________________________________ > General mailing list > [email protected] > http://mail.jolug.org/mailman/listinfo/general_jolug.org > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ General mailing list [email protected] http://mail.jolug.org/mailman/listinfo/general_jolug.org
