This is a multi-part message in MIME format.
------_=_NextPart_001_01C1F5E9.49DAA3A5
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Why not just use a javascript with your form like so...add or replace
words in it...I added dots for the nasty words below in the script...I
test for smut on my guestbook form but the forum does not have to see
the nasty words..I change the input to special characters so I can tell
who is trying to put smut on my site.
<HEAD>
<SCRIPT LANGUAGE=3D"JavaScript">
<!-- Begin
function smutEngine() {
smut=3D"#@&*%!#@&*%!#@&*%!";
cmp=3D"sex babes sh.. f... damn porno c.. cu.. pr... peck.. as. "
+"assho.. pedophile man-boy man/boy do.. tw.. ";
txt=3Ddocument.xyz.Doit.value;
tstx=3D"";
for (var i=3D0;i<16;i++){
pos=3Dcmp.indexOf(" ");
wrd=3Dcmp.substring(0,pos);
wrdl=3Dwrd.length
cmp=3Dcmp.substring(pos+1,cmp.length);
while (txt.indexOf(wrd)>-1){
pos=3Dtxt.indexOf(wrd);
txt=3Dtxt.substring(0,pos)+smut.substring(0,wrdl)
+txt.substring((pos+wrdl),txt.length);
}
}
document.xyz.Doit.value=3Dtxt;
}
// End -->
</SCRIPT>
<BODY>
<FORM NAME=3D"xyz">
<INPUT TYPE=3D"text" NAME=3D"yourfield" SIZE=3D40 VALUE=3D""><BR> <INPUT
TYPE=3D"button" NAME=3D"Doit" VALUE=3D" Submit "
onClick=3D"smutEngine(this.form)"> </FORM>
-----Original Message-----
From: Joe Murphy [ <mailto:bacster@o...>
mailto:bacster@o...]
Sent: Saturday, May 04, 2002 6:58 AM
To: ASP Web HowTo
Subject: [asp_web_howto] automatically moving back one page
Hi Folks
I have a form that submits and then I do a dirty word search on it. If a
dirty word is found I want the page to bounce back so the user still has
their data in front of them and they can make modifications.
I would prefer not to have to save everything first, just a straight
bounce back would be great.
Thanks
Joe
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
<http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogram
m
e>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
<http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogram
m
e>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
<http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogram
m
e>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Change your mail options at <http://p2p.wrox.com/manager.asp>