lol wilbergini, beside I do not know a single cuss word :)

----------------------------------------
From: Will The Game <[EMAIL PROTECTED]>
Sent: Saturday, April 09, 2005 7:45 AM
To: CF-Talk <[email protected]>
Subject: Built a dirty word checker, testing please? 

Hey,

I've built a cool little tool I'm callin' nodirtywords.

It's just what the name implies, code that check to make sure a dirty word 
hasn't been submitted via form data. Iset it up as a web service, but also 
built a custom tag AND just a plain ol' CFC. For now I wanted to see if some of 
you could test out the web service and give me some feedback/suggestions. I 
know WS isn't the way to implement this, but it's just plain fun to use it that 
way! :)

dave l., please don't test it out, my cf server probably can't handle it! :)

Thanks to Jared for his help!

Test it out right here: http://www.wtomlinson.com/checkcussform.cfm

Here's some explanation and example code I've been using. 

Setup a text input named "text". A structure named "finalresult" will return a 
variable named finalresult.theresult with a value of either "pass" or "fail". 

There's also a variable named finalresult.wordcount that returns the word count 
of text submitted. This could be used for a server side check that ensures text 
didn't exceed the max specified. Use the values to do whatever processing you'd 
like. 

 Example: Run an insert query with the clean text 

Then output it like this. 

Verdict on text is: #finalresult.theresult# - word count is: 
#finalresult.thewordcount#

Or just cfdump it. 

Thanks,
Will



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202114
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to