View Single Post
Old 11-09-2012, 12:07 PM   PM User | #1
jeddi
Senior Coder

 
Join Date: May 2006
Posts: 1,526
Thanks: 26
Thanked 4 Times in 4 Posts
jeddi has a little shameless behaviour in the past
How to check field contents ??

Hi,

I am getting to much span in my contact form and want to
filter out any messages with a link in them.

I have written this code:

PHP Code:
// Test for link in message.
if($Db_mess  ) {
    
$err_msg "Please do not use links in message."
    
require_once ("contact_fm.php");
    exit;
    }  
// endif 
I would like to know what test I can use to find
this :[B] [url=[/B]

This is always found in the spam messages.

Thanks for any help.
__________________
If you want to attract and keep more clients, then offer great customer support.

Support-Focus.com. automates the process and gives you a trust seal to place on your website.
I recommend that you at least take the 30 day free trial.
jeddi is offline   Reply With Quote