View Full Version : Prevent field/ text area from any tags (script) help please..

02-18-2010, 06:01 AM
Hi.. every one, i looking for simple script to prevent my form field or my text area from inputting any tags or script and also from long characters e.g.

kakakdkadafpoadaodaofsafsfsafsafasfmsafmsafskdkafakfasfkasfsafasfmafsfksamfsmfasfasfmasfaksfasfkakfj safjsufsufnasfasfjafnasfjsafjsafjsajfsafasfasjfjafjajfafjsafajsfjasjfjasfjasjfajsfjasfjasjfjafjjdajf ajfjajaiqwieqieaifiuafuiafasfiusfiuiqiqiuwqiqwqiwiqwiqiwiqwiqwiqiwiqwqw

anyone can help me...?

02-18-2010, 07:33 AM
To filter html tags, you could use strip_tags()

02-19-2010, 04:11 AM
ok.. nice suggestions...

but use strip_tags() also possible to prevent long character? (that can be) break the display become stretch.
btw thank you