Basicly I have Textarea named "discription" and I would like to check this field and ALL the words in it for any bad words listed in my string 'below'
<%
Form_discription = Request.Form("discription"
Validated_Form = true
IF InStr(Form_discription,"badword","badword2)=1 THEN ...."here i would like to put more words".......
Validated_Form = false
END IF
IF NOT Validated_Form THEN
%>
<HTML>
<BODY>
We said no cussing . Click back in your browser, and fill it out properly!
</BODY>
</HTML>
<%
ELSE
'Here you can insert the info to a database, or send it
'with JMail to you mail account. If you send it to a db, make sure
'to remove any possible ' chars.%>
What do I need to change to do this.?
What am I doing wrong Im kinda new to ASP
Any help would be great....
This will work with one word in the string but it doesnt work with two like shown,It only checks for one word and i want it to check the whole textarea.
<%
Form_discription = Request.Form("discription"
Validated_Form = true
IF InStr(Form_discription,"badword","badword2)=1 THEN ...."here i would like to put more words".......
Validated_Form = false
END IF
IF NOT Validated_Form THEN
%>
<HTML>
<BODY>
We said no cussing . Click back in your browser, and fill it out properly!
</BODY>
</HTML>
<%
ELSE
'Here you can insert the info to a database, or send it
'with JMail to you mail account. If you send it to a db, make sure
'to remove any possible ' chars.%>
What do I need to change to do this.?
What am I doing wrong Im kinda new to ASP
Any help would be great....
This will work with one word in the string but it doesnt work with two like shown,It only checks for one word and i want it to check the whole textarea.