Jump to content

Recommended Posts

Posted

I've been reading this long topic again:-

http://www.killersites.com/mvnforum/mvnforum/viewthread?thread=10257&offset=20

 

Shetland Wolf on 2 April 2008 and ewwatson on 5 April 2008 2.53 pm used this code:-

if (preg_replace($headers, '', $string) == $string) {

return $string;

} else {

die('You think Im spammy? Spammy how? Spammy like a clown, spammy?');

}

 

 

but as far as I can see, $headers and $string variables aren't defined anywhere in Eric's form, so were these just names as an example which require editig to those in your form (or Eric's form) or are they some kind of global code applicable in any case?

Posted (edited)

Oh no, your gong to expose my ignorance with php! Got that from somewhere, I never quite new what that did either, but never removed it.

 

The one I have now, the one Ben and others helped me with, is pretty bullet proof. I haven't had a single spam since. I can PM you with it if you'd like.

Edited by Eric
Posted

I've been using the same code in one of my forms but I just realised that it might not be working; on the other hand it hasn't raised any PHP warnings because I haven't got any variables defined for $headers or $string either so it may be OK; I just want clarification.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...