954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Search in a String, spam in guestbook

Hi, I have problems with spam in my guestbook and hope the solution colud be to forbid specific characters like "]" or maybe words like "www.".
So I need help to detect a special character or word in a string or more exact, in a string from a form(Request.form("text")).

Is there anyone who has another solution to be free from spam in guestbooks?

//Tobbe

tobek275
Newbie Poster
1 post since Jul 2006
Reputation Points: 10
Solved Threads: 0
 

you want the InStr function
example

blnOkToPost = true
if InStr(Request.form("text"), "www.") then blnOkToPost = false
if InStr(Request.form("text"), "]") then blnOkToPost = false

if blnOkToPost then
  'pseudocode
  '  post the submission
else
  'pseudocode
  'show error or whatever
end if
campkev
Posting Pro in Training
484 posts since Jul 2005
Reputation Points: 14
Solved Threads: 19
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You