Restrict Insert
I have some idiots I guess that are searching for terms like:
Pollen, pà à à à à à à à Ã
And the à etc screws things up...
This is the code I am using now - but i seems that they are still sneaking stuff through...
<cfif #term# does not contain "Ã" or #term# does not contain "ý" or #term# does not contain "Â">
<cfquery name="ins" DATASOURCE="medexplorer">
Insert into currentsearch
(words)
values ('#term#')
</cfquery>
</cfif>
Any ideas on how better to not nsert these search terms?
Thanx
