Programatically, I doubt this can be done... or if it can, it would be one mother of a regex :) As you've already pointed out, there's a million ways to write an email address, and something such as an ICQ number can be written without the word "icq" and some people will still spot it... but to PHP, it would just look like a long number.
Generally, I've found that the easiest way to achieve a "no contact details" policy is to have the contents reviewed by a real person before becoming "valid content". This is the way dating sites and anything else where you "pay for being connected to another person". I achieved this on one site by: 1. user submits form 2. basic validation of data is done 3. added to the database, but the "publish" column is set to "false" 4. email is sent with the contents of the post in it to the moderator 5. moderator checks the contents via email, and clicks on one of two links: a) confirm content ok (clicking on the link fires up the browser, and sets the "publish" column of the row to "true") b) not okay -- fires up the browser, showing content in a form, which the moderator can edit down, and submit 6. content is now validated by the moderator, and "publishable". To cut down the amount of work the moderator has to do, you can do some basic validation of the content before it's emailed to the moderator... this might include spitting back a "sorry, no contact details allowed" message under some circumstances, eg if the words icq, yahoo, im, msn, email, po, phone, ph, tel, etc etc are in the text... of course this might cause an inconvenience to genuine posters... so you'll have assess the benefit. Good luck, Justin on 10/11/02 4:24 PM, Mike Miller ([EMAIL PROTECTED]) wrote: > Ok I am building a site similar in purpose to elance for a client, and part > of their terms and conditions is no contact info till a bid has been > awarded. So they want all contact info that is posted to be removed on > submission of the bid, and any on site contact between buyer, and provider. > > I have been beating my head against the wall trying to think of how to do > this but cannot think of a way, I know the regex() function will probably > be the best way, but how to make it verifiy the info before posting to the > database , is just beyond my creativity:) besides that there are a million > ways to say things, like email for instance, [EMAIL PROTECTED] > somoeone at somplace Dot com > and so on and on for email, phone, web address, instant messenger type > contact. > > > So I am truning to all of you that have been doing this a whole lot longer > than i have for suggestions. > > Any help would be greatly appreciated, > > > Mike > > -------------------- Creative Director http://Indent.com.au -------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php