Block a word/phrase in PHP?

  • Thread starter Thread starter sparkyreich
  • Start date Start date
S

sparkyreich

Guest
I have a php form and I am getting spam. I need a line of PHP that will check for the use of the word/phrase "http" and disallow html scripts. I need it to be an "if" statement. How would I do this basically what I want is this but I don't know the proper PHP code:

if(inputtedText contains "http"){
error message;
}

This should work with caps also.

Thanks! Anything will help. Yes I have to use PHP but you may suggest other things(free).
 
Back
Top