Re: [PHP] Removing Invalid Users

2001-07-04 Thread Steve Werby
"Clayton Dukes" <[EMAIL PROTECTED]> wrote: > How can I write code that will search the database and check the validity of > an email address, and if it's bad, to remove that entry from the database? Like Tom said, use regex to check the email is of a valid format. A small percentage of servers c

Re: [PHP] Removing Invalid Users

2001-07-04 Thread Tom Carter
You can check that the *format* of the address is valid by using regular expressions.. look at the regular expression pages on php.net (especially the users comments.. they do exactly that!) As for checking whether it is a real email or not.. you can't test this without actually sending them an e